@@ -12,25 +12,24 @@ endif
12
12
13
13
syn match rustAssert " \< assert\(\w\) *"
14
14
syn keyword rustKeyword as break
15
- syn keyword rustKeyword const copy do drop else export extern fail
15
+ syn keyword rustKeyword copy do drop else extern
16
16
syn keyword rustKeyword for if impl let log
17
- syn keyword rustKeyword loop match mod move mut once priv pure
18
- syn match rustKeyword " \< pub\> "
17
+ syn keyword rustKeyword loop match mod move once priv pub pure
19
18
syn keyword rustKeyword ref return static
20
- syn match rustKeyword " \< unsafe\> " " Allows also matching unsafe::foo()
21
- syn keyword rustKeyword use while
19
+ syn keyword rustKeyword unsafe use while
22
20
" FIXME: Scoped impl's name is also fallen in this category
23
21
syn keyword rustKeyword mod trait struct enum type nextgroup =rustIdentifier skipwhite
24
22
syn keyword rustKeyword fn nextgroup =rustFuncName skipwhite
23
+ syn keyword rustStorage const mut
25
24
26
25
syn match rustIdentifier contains =rustIdentifierPrime " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
27
26
syn match rustFuncName " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
28
27
29
28
" Reserved words
30
- syn keyword rustKeyword m32 m64 m128 f80 f16 f128
29
+ syn keyword rustKeyword m32 m64 m128 f80 f16 f128 be
31
30
32
31
syn keyword rustType int uint float char bool u8 u16 u32 u64 f32
33
- syn keyword rustType f64 i8 i16 i32 i64 str
32
+ syn keyword rustType f64 i8 i16 i32 i64 str Self
34
33
syn keyword rustType Option Either
35
34
36
35
" Types from libc
@@ -134,6 +133,7 @@ hi def link rustMacro Macro
134
133
hi def link rustType Type
135
134
hi def link rustTodo Todo
136
135
hi def link rustAttribute PreProc
136
+ hi def link rustStorage StorageClass
137
137
138
138
" Other Suggestions:
139
139
" hi rustAssert ctermfg=yellow
0 commit comments