Skip to content

Commit 6442b1c

Browse files
committed
vim: separate the conditional keywords
1 parent b0f66c4 commit 6442b1c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ elseif exists("b:current_syntax")
1010
finish
1111
endif
1212

13+
syn keyword rustConditional match if else
14+
1315
syn keyword rustKeyword as break
14-
syn keyword rustKeyword copy do drop else extern
1516
syn keyword rustKeyword for if impl let log
16-
syn keyword rustKeyword loop match mod once priv pub
17+
syn keyword rustKeyword copy do drop extern
18+
syn keyword rustKeyword for impl let log
19+
syn keyword rustKeyword loop mod once priv pub
1720
syn keyword rustKeyword return
1821
syn keyword rustKeyword unsafe use while
1922
" FIXME: Scoped impl's name is also fallen in this category
@@ -125,6 +128,7 @@ hi def link rustConstant Constant
125128
hi def link rustSelf Constant
126129
hi def link rustFloat Float
127130
hi def link rustKeyword Keyword
131+
hi def link rustConditional Conditional
128132
hi def link rustIdentifier Identifier
129133
hi def link rustModPath Include
130134
hi def link rustFuncName Function

0 commit comments

Comments
 (0)