Skip to content

Commit 94b0edc

Browse files
committed
vim: Highlight Todo in comments
1 parent 55de232 commit 94b0edc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ syn case match
5656

5757
syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)\)'"
5858

59-
syn region rustComment start="/\*" end="\*/" contains=rustComment
60-
syn region rustComment start="//" skip="\\$" end="$" keepend
59+
syn region rustComment start="/\*" end="\*/" contains=rustComment,rustTodo
60+
syn region rustComment start="//" skip="\\$" end="$" contains=rustTodo keepend
61+
62+
syn keyword rustTodo TODO FIXME XXX NB
6163

6264
hi def link rustString String
6365
hi def link rustCharacter Character

0 commit comments

Comments
 (0)