diff options
| author | klutzy <klutzytheklutzy@gmail.com> | 2013-04-10 04:15:42 +0900 |
|---|---|---|
| committer | klutzy <klutzytheklutzy@gmail.com> | 2013-04-10 04:25:48 +0900 |
| commit | 7a1394d58f6f8b665f32895ae50e13a7747efefa (patch) | |
| tree | 38d2eeec5f2810c4debb4f2ba1fafa9dde886bcc /src | |
| parent | 412a07055c211f2dec4fb87f25b87d2d71fb13de (diff) | |
vim: syntax highlight for inner doc comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/etc/vim/syntax/rust.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 303cc0834e8..3e6c11c6238 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -110,11 +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 rustCommentDoc start="/\*\*" end="\*/" -syn region rustCommentDoc start="///" skip="\\$" end="$" 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 region rustComment start="/\*\([^\*!]\|$\)" end="\*/" contains=rustTodo +syn region rustComment start="//\([^/!]\|$\)" skip="\\$" end="$" contains=rustTodo keepend syn keyword rustTodo contained TODO FIXME XXX NB |
