File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,16 @@ 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 extern fail
15
+ syn keyword rustKeyword copy do drop else extern fail
16
16
syn keyword rustKeyword for if impl let log
17
- syn keyword rustKeyword loop match mod move mut once priv pure
17
+ syn keyword rustKeyword loop match mod move once priv pure
18
18
syn match rustKeyword " \< pub\> "
19
19
syn keyword rustKeyword ref return static
20
20
syn keyword rustKeyword unsafe use while
21
21
" FIXME: Scoped impl's name is also fallen in this category
22
22
syn keyword rustKeyword mod trait struct enum type nextgroup =rustIdentifier skipwhite
23
23
syn keyword rustKeyword fn nextgroup =rustFuncName skipwhite
24
+ syn keyword rustStorage const mut
24
25
25
26
syn match rustIdentifier contains =rustIdentifierPrime " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
26
27
syn match rustFuncName " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
@@ -133,6 +134,7 @@ hi def link rustMacro Macro
133
134
hi def link rustType Type
134
135
hi def link rustTodo Todo
135
136
hi def link rustAttribute PreProc
137
+ hi def link rustStorage StorageClass
136
138
137
139
" Other Suggestions:
138
140
" hi rustAssert ctermfg=yellow
You can’t perform that action at this time.
0 commit comments