2
2
" Language: Rust
3
3
" Maintainer: Patrick Walton <pcwalton@mozilla.com>
4
4
" Maintainer: Ben Blum <bblum@cs.cmu.edu>
5
- " Last Change: 2012 Jul 06
5
+ " Last Change: 2012 Dec 14
6
6
7
7
if version < 600
8
8
syntax clear
@@ -11,16 +11,16 @@ elseif exists("b:current_syntax")
11
11
endif
12
12
13
13
syn match rustAssert " \< assert\(\w\) *"
14
- syn keyword rustKeyword again as break
14
+ syn keyword rustKeyword as break
15
15
syn keyword rustKeyword const copy do drop else export extern fail
16
- syn keyword rustKeyword for if impl import in let log
17
- syn keyword rustKeyword loop match mod module move mut new of priv pure
16
+ syn keyword rustKeyword for if impl let log
17
+ syn keyword rustKeyword loop match mod move mut once priv pure
18
18
syn match rustKeyword " \< pub\> "
19
- syn keyword rustKeyword ref return static to unchecked
19
+ syn keyword rustKeyword ref return static
20
20
syn match rustKeyword " \< unsafe\> " " Allows also matching unsafe::foo()
21
- syn keyword rustKeyword use while with
21
+ syn keyword rustKeyword use while
22
22
" FIXME: Scoped impl's name is also fallen in this category
23
- syn keyword rustKeyword mod trait class struct enum type nextgroup =rustIdentifier skipwhite
23
+ syn keyword rustKeyword mod trait struct enum type nextgroup =rustIdentifier skipwhite
24
24
syn keyword rustKeyword fn nextgroup =rustFuncName skipwhite
25
25
26
26
syn match rustIdentifier contains =rustIdentifierPrime " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
0 commit comments