@@ -10,11 +10,10 @@ elseif exists("b:current_syntax")
1010 finish
1111endif
1212
13- syn match rustAssert " \< assert\(\w\) *"
1413syn keyword rustKeyword as break
1514syn keyword rustKeyword copy do drop else extern
1615syn 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
1817syn keyword rustKeyword ref return static
1918syn 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
7170syn match rustModPath " \w\(\w\) *::[^<]" he =e - 3 ,me =e - 3
7271syn 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
7776syn match rustMacro ' \w\(\w\) *!'
7877syn match rustMacro ' #\w\(\w\) *'
@@ -126,7 +125,6 @@ hi def link rustBoolean Boolean
126125hi def link rustConstant Constant
127126hi def link rustSelf Constant
128127hi def link rustFloat Float
129- hi def link rustAssert Keyword
130128hi def link rustKeyword Keyword
131129hi def link rustIdentifier Identifier
132130hi def link rustModPath Include
@@ -140,7 +138,6 @@ hi def link rustStorage StorageClass
140138hi def link rustLifetime Special
141139
142140" Other Suggestions:
143- " hi rustAssert ctermfg=yellow
144141" hi rustMacro ctermfg=magenta
145142
146143syn sync minlines =200
0 commit comments