vim: add rustCommentDoc
This commit is contained in:
parent
38fe5aa070
commit
7c2a8c4ac2
@ -110,8 +110,11 @@ syn match rustFloat display "\<[0-9][0-9_]*\.[0-9_]\+\%([eE][+-]\=[0-9
|
||||
syn match rustLifetime display "\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*"
|
||||
syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)\)'"
|
||||
|
||||
syn region rustComment start="/\*" end="\*/" contains=rustTodo
|
||||
syn region rustComment start="//" skip="\\$" end="$" contains=rustTodo keepend
|
||||
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 keyword rustTodo contained TODO FIXME XXX NB
|
||||
|
||||
@ -134,6 +137,7 @@ hi def link rustConditional Conditional
|
||||
hi def link rustIdentifier Identifier
|
||||
hi def link rustModPath Include
|
||||
hi def link rustFuncName Function
|
||||
hi def link rustCommentDoc SpecialComment
|
||||
hi def link rustComment Comment
|
||||
hi def link rustMacro Macro
|
||||
hi def link rustType Type
|
||||
|
Loading…
x
Reference in New Issue
Block a user