diff options
| author | Tycho Sci <tychosci@gmail.com> | 2012-05-03 17:02:41 +0900 |
|---|---|---|
| committer | Tycho Sci <tychosci@gmail.com> | 2012-05-03 17:02:41 +0900 |
| commit | 94b0edc606112ddc71283bdcb5cb826dcbc3d167 (patch) | |
| tree | dc025ff5aaebe987dd46b3f3e40b7b9a832215ff /src/etc/vim/syntax/rust.vim | |
| parent | 55de232426b3861d1cc2385888a6104063318dce (diff) | |
| download | rust-94b0edc606112ddc71283bdcb5cb826dcbc3d167.tar.gz rust-94b0edc606112ddc71283bdcb5cb826dcbc3d167.zip | |
vim: Highlight Todo in comments
Diffstat (limited to 'src/etc/vim/syntax/rust.vim')
| -rw-r--r-- | src/etc/vim/syntax/rust.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 3e248f4c983..e89ad554c99 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -56,8 +56,10 @@ syn case match syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)\)'" -syn region rustComment start="/\*" end="\*/" contains=rustComment -syn region rustComment start="//" skip="\\$" end="$" keepend +syn region rustComment start="/\*" end="\*/" contains=rustComment,rustTodo +syn region rustComment start="//" skip="\\$" end="$" contains=rustTodo keepend + +syn keyword rustTodo TODO FIXME XXX NB hi def link rustString String hi def link rustCharacter Character |
