vim: fix comment highlighting bug
Previous commit had a bug that a line which ends with "//" or "/*" is not correctly highlighted.
This commit is contained in:
parent
7c2a8c4ac2
commit
fc26911b49
@ -113,8 +113,8 @@ syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8
|
||||
syn region rustCommentDoc start="/\*\*" end="\*/"
|
||||
syn region rustCommentDoc start="///" skip="\\$" end="$" keepend
|
||||
syn match rustComment "/\*\*/"
|
||||
syn region rustComment start="/\*[^\*]" end="\*/" contains=rustTodo
|
||||
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
|
||||
|
||||
syn keyword rustTodo contained TODO FIXME XXX NB
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user