Skip to content

Commit 0a1ac75

Browse files
committed
Merge remote-tracking branch 'thestinger/vim'
2 parents 8979695 + c7f7be8 commit 0a1ac75

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Rust
33
" Maintainer: Patrick Walton <pcwalton@mozilla.com>
44
" Maintainer: Ben Blum <bblum@cs.cmu.edu>
5-
" Last Change: 2012 Jul 06
5+
" Last Change: 2012 Dec 14
66

77
if version < 600
88
syntax clear
@@ -11,16 +11,16 @@ elseif exists("b:current_syntax")
1111
endif
1212

1313
syn match rustAssert "\<assert\(\w\)*"
14-
syn keyword rustKeyword again as break
14+
syn keyword rustKeyword as break
1515
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
1818
syn match rustKeyword "\<pub\>"
19-
syn keyword rustKeyword ref return static to unchecked
19+
syn keyword rustKeyword ref return static
2020
syn match rustKeyword "\<unsafe\>" " Allows also matching unsafe::foo()
21-
syn keyword rustKeyword use while with
21+
syn keyword rustKeyword use while
2222
" 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
2424
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite
2525

2626
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained

0 commit comments

Comments
 (0)