Skip to content

Commit 0224eb3

Browse files
committed
vim: assert and pure keywords were removed
1 parent fbd8eae commit 0224eb3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/etc/vim/syntax/rust.vim

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

13-
syn match rustAssert "\<assert\(\w\)*"
1413
syn keyword rustKeyword as break
1514
syn keyword rustKeyword copy do drop else extern
1615
syn keyword rustKeyword for if impl let log
17-
syn keyword rustKeyword loop match mod once priv pub pure
16+
syn keyword rustKeyword loop match mod once priv pub
1817
syn keyword rustKeyword ref return static
1918
syn keyword rustKeyword unsafe use while
2019
" FIXME: Scoped impl's name is also fallen in this category
@@ -71,8 +70,8 @@ syn keyword rustConstant STDIN_FILENO STDOUT_FILENO STDERR_FILENO
7170
syn match rustModPath "\w\(\w\)*::[^<]"he=e-3,me=e-3
7271
syn match rustModPathSep "::"
7372

74-
syn match rustFuncCall "\w\(\w\)*("he=e-1,me=e-1 contains=rustAssert
75-
syn match rustFuncCall "\w\(\w\)*::<"he=e-3,me=e-3 contains=rustAssert " foo::<T>();
73+
syn match rustFuncCall "\w\(\w\)*("he=e-1,me=e-1
74+
syn match rustFuncCall "\w\(\w\)*::<"he=e-3,me=e-3 " foo::<T>();
7675

7776
syn match rustMacro '\w\(\w\)*!'
7877
syn match rustMacro '#\w\(\w\)*'
@@ -126,7 +125,6 @@ hi def link rustBoolean Boolean
126125
hi def link rustConstant Constant
127126
hi def link rustSelf Constant
128127
hi def link rustFloat Float
129-
hi def link rustAssert Keyword
130128
hi def link rustKeyword Keyword
131129
hi def link rustIdentifier Identifier
132130
hi def link rustModPath Include
@@ -140,7 +138,6 @@ hi def link rustStorage StorageClass
140138
hi def link rustLifetime Special
141139

142140
" Other Suggestions:
143-
" hi rustAssert ctermfg=yellow
144141
" hi rustMacro ctermfg=magenta
145142

146143
syn sync minlines=200

0 commit comments

Comments
 (0)