3
3
" Maintainer: Patrick Walton <pcwalton@mozilla.com>
4
4
" Maintainer: Ben Blum <bblum@cs.cmu.edu>
5
5
" Maintainer: Chris Morgan <me@chrismorgan.info>
6
- " Last Change: 2014 Jan 4
6
+ " Last Change: 2014 Feb 14
7
7
8
8
if version < 600
9
9
syntax clear
@@ -18,7 +18,8 @@ syn keyword rustOperator as
18
18
19
19
syn match rustAssert " \< assert\(\w\) *!" contained
20
20
syn match rustFail " \< fail\(\w\) *!" contained
21
- syn keyword rustKeyword break continue do extern
21
+ syn keyword rustKeyword break continue do
22
+ syn keyword rustKeyword extern nextgroup =rustExternCrate skipwhite
22
23
syn keyword rustKeyword for in if impl let
23
24
syn keyword rustKeyword loop once priv pub
24
25
syn keyword rustKeyword return
@@ -31,6 +32,10 @@ syn keyword rustKeyword proc
31
32
syn keyword rustStorage mut ref static
32
33
syn keyword rustObsoleteStorage const
33
34
35
+ syn keyword rustInvalidBareKeyword crate
36
+
37
+ syn keyword rustExternCrate crate contained nextgroup =rustIdentifier skipwhite
38
+
34
39
syn match rustIdentifier contains =rustIdentifierPrime " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
35
40
syn match rustFuncName " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
36
41
@@ -245,6 +250,8 @@ hi def link rustDeriving PreProc
245
250
hi def link rustStorage StorageClass
246
251
hi def link rustObsoleteStorage Error
247
252
hi def link rustLifetime Special
253
+ hi def link rustInvalidBareKeyword Error
254
+ hi def link rustExternCrate rustKeyword
248
255
249
256
" Other Suggestions:
250
257
" hi rustAttribute ctermfg=cyan
0 commit comments