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:
klutzy 2013-04-07 14:21:00 +09:00
parent 7c2a8c4ac2
commit fc26911b49

View file

@ -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