Skip to content

Commit b0f66c4

Browse files
committed
vim: mark Todo as contained and rm unsafe from it
It's nice to make unsafe stand out, but this way isn't correct because it highlights it in comments.
1 parent 7142cde commit b0f66c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8
109109
syn region rustComment start="/\*" end="\*/" contains=rustComment,rustTodo
110110
syn region rustComment start="//" skip="\\$" end="$" contains=rustTodo keepend
111111

112-
113-
syn keyword rustTodo TODO FIXME XXX NB unsafe
112+
syn keyword rustTodo contained TODO FIXME XXX NB
114113

115114
hi def link rustHexNumber rustNumber
116115
hi def link rustBinNumber rustNumber

0 commit comments

Comments
 (0)