From f9df32adac8568cf021f6645c41d6d9a20824b63 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Thu, 15 Dec 2011 11:20:55 -0800 Subject: [PATCH] vim comment highlighting can contain comments. --- src/etc/vim/syntax/rust.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 80067ed98820..aad31ba2e099 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -46,7 +46,7 @@ syn match rustFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>" syn match rustCharacter "'[^']*'" syn case match -syn region rustComment start="/\*" end="\*/" +syn region rustComment start="/\*" end="\*/" contains=rustComment syn region rustComment start="//" skip="\\$" end="$" keepend hi def link rustString String @@ -59,5 +59,7 @@ hi def link rustComment Comment hi def link rustMacro Macro hi def link rustType Type -let b:current_syntax = "rust" +syn sync minlines=200 +syn sync maxlines=500 +let b:current_syntax = "rust"