vim: Highlight Todo in comments
This commit is contained in:
parent
55de232426
commit
94b0edc606
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue