@@ -19,23 +19,23 @@ syn keyword rustOperator as
19
19
syn match rustAssert " \< assert\(\w\) *!" contained
20
20
syn match rustFail " \< fail\(\w\) *!" contained
21
21
syn keyword rustKeyword break continue do extern
22
- syn keyword rustKeyword in if impl let log
23
- syn keyword rustKeyword for impl let log
24
- syn keyword rustKeyword loop mod once priv pub
22
+ syn keyword rustKeyword for in if impl let
23
+ syn keyword rustKeyword loop once priv pub
25
24
syn keyword rustKeyword return
26
25
syn keyword rustKeyword unsafe while
27
26
syn keyword rustKeyword use nextgroup =rustModPath skipwhite
28
27
" FIXME: Scoped impl's name is also fallen in this category
29
28
syn keyword rustKeyword mod trait struct enum type nextgroup =rustIdentifier skipwhite
30
29
syn keyword rustKeyword fn nextgroup =rustFuncName skipwhite
31
30
syn keyword rustKeyword proc
32
- syn keyword rustStorage const mut ref static
31
+ syn keyword rustStorage mut ref static
32
+ syn keyword rustObsoleteStorage const
33
33
34
34
syn match rustIdentifier contains =rustIdentifierPrime " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
35
35
syn match rustFuncName " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
36
36
37
37
" Reserved (but not yet used) keywords {{{2
38
- syn keyword rustKeyword alignof be offsetof pure sizeof typeof yield
38
+ syn keyword rustReservedKeyword alignof be offsetof pure sizeof typeof yield
39
39
40
40
" Built-in types {{{2
41
41
syn keyword rustType int uint float char bool u8 u16 u32 u64 f32
@@ -228,6 +228,7 @@ hi def link rustSelf Constant
228
228
hi def link rustFloat Float
229
229
hi def link rustOperator Operator
230
230
hi def link rustKeyword Keyword
231
+ hi def link rustReservedKeyword Error
231
232
hi def link rustConditional Conditional
232
233
hi def link rustIdentifier Identifier
233
234
hi def link rustCapsIdent rustIdentifier
@@ -248,6 +249,7 @@ hi def link rustTodo Todo
248
249
hi def link rustAttribute PreProc
249
250
hi def link rustDeriving PreProc
250
251
hi def link rustStorage StorageClass
252
+ hi def link rustObsoleteStorage Error
251
253
hi def link rustLifetime Special
252
254
253
255
" Other Suggestions:
0 commit comments