Skip to content

Commit 38fe5aa

Browse files
committed
vim: disable nested comment
Since comment nesting does not work from 0.4.
1 parent 44d4d6d commit 38fe5aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ syn match rustFloat display "\<[0-9][0-9_]*\.[0-9_]\+\%([eE][+-]\=[0-9
110110
syn match rustLifetime display "\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*"
111111
syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)\)'"
112112

113-
syn region rustComment start="/\*" end="\*/" contains=rustComment,rustTodo
113+
syn region rustComment start="/\*" end="\*/" contains=rustTodo
114114
syn region rustComment start="//" skip="\\$" end="$" contains=rustTodo keepend
115115

116116
syn keyword rustTodo contained TODO FIXME XXX NB

0 commit comments

Comments
 (0)