We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c2a8c4 commit fc26911Copy full SHA for fc26911
src/etc/vim/syntax/rust.vim
@@ -113,8 +113,8 @@ syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8
113
syn region rustCommentDoc start="/\*\*" end="\*/"
114
syn region rustCommentDoc start="///" skip="\\$" end="$" keepend
115
syn match rustComment "/\*\*/"
116
-syn region rustComment start="/\*[^\*]" end="\*/" contains=rustTodo
117
-syn region rustComment start="//[^/]" skip="\\$" end="$" contains=rustTodo keepend
+syn region rustComment start="/\*\([^\*]\|$\)" end="\*/" contains=rustTodo
+syn region rustComment start="//\([^/]\|$\)" skip="\\$" end="$" contains=rustTodo keepend
118
119
syn keyword rustTodo contained TODO FIXME XXX NB
120
0 commit comments