Skip to content

Commit f9df32a

Browse files
committed
vim comment highlighting can contain comments.
1 parent a66f068 commit f9df32a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ syn match rustFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>"
4646
syn match rustCharacter "'[^']*'"
4747

4848
syn case match
49-
syn region rustComment start="/\*" end="\*/"
49+
syn region rustComment start="/\*" end="\*/" contains=rustComment
5050
syn region rustComment start="//" skip="\\$" end="$" keepend
5151

5252
hi def link rustString String
@@ -59,5 +59,7 @@ hi def link rustComment Comment
5959
hi def link rustMacro Macro
6060
hi def link rustType Type
6161

62-
let b:current_syntax = "rust"
62+
syn sync minlines=200
63+
syn sync maxlines=500
6364

65+
let b:current_syntax = "rust"

0 commit comments

Comments
 (0)