diff options
| author | klutzy <klutzytheklutzy@gmail.com> | 2013-04-07 14:21:00 +0900 |
|---|---|---|
| committer | klutzy <klutzytheklutzy@gmail.com> | 2013-04-07 14:30:50 +0900 |
| commit | fc26911b493eb151710e1a96578aad55596cfeb7 (patch) | |
| tree | e51dc1038eb64d057d1c4befcd225ed699e09525 | |
| parent | 7c2a8c4ac2c89a174fdcf4cc68e17e7639a913c6 (diff) | |
| download | rust-fc26911b493eb151710e1a96578aad55596cfeb7.tar.gz rust-fc26911b493eb151710e1a96578aad55596cfeb7.zip | |
vim: fix comment highlighting bug
Previous commit had a bug that a line which ends with "//" or "/*" is not correctly highlighted.
| -rw-r--r-- | src/etc/vim/syntax/rust.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 75858966c55..303cc0834e8 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -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 |
