diff options
| author | klutzy <klutzytheklutzy@gmail.com> | 2013-04-07 04:10:40 +0900 |
|---|---|---|
| committer | klutzy <klutzytheklutzy@gmail.com> | 2013-04-07 04:32:05 +0900 |
| commit | 7c2a8c4ac2c89a174fdcf4cc68e17e7639a913c6 (patch) | |
| tree | 27fe463a4cc7abf19d55301eea12bb3a44850045 /src/etc/vim/syntax | |
| parent | 38fe5aa0709891551258ea8888d2c7bb781cdc49 (diff) | |
vim: add rustCommentDoc
Diffstat (limited to 'src/etc/vim/syntax')
| -rw-r--r-- | src/etc/vim/syntax/rust.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 380b0f505c1..75858966c55 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -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 |
