Skip to content

Commit 2846e03

Browse files
committed
automated merge
2 parents 8ebdb1a + dffc3f8 commit 2846e03

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
@@ -12,25 +12,24 @@ endif
1212

1313
syn match rustAssert "\<assert\(\w\)*"
1414
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
1616
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
1918
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
2220
" FIXME: Scoped impl's name is also fallen in this category
2321
syn keyword rustKeyword mod trait struct enum type nextgroup=rustIdentifier skipwhite
2422
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite
23+
syn keyword rustStorage const mut
2524

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

2928
" Reserved words
30-
syn keyword rustKeyword m32 m64 m128 f80 f16 f128
29+
syn keyword rustKeyword m32 m64 m128 f80 f16 f128 be
3130

3231
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
3433
syn keyword rustType Option Either
3534

3635
" Types from libc
@@ -134,6 +133,7 @@ hi def link rustMacro Macro
134133
hi def link rustType Type
135134
hi def link rustTodo Todo
136135
hi def link rustAttribute PreProc
136+
hi def link rustStorage StorageClass
137137

138138
" Other Suggestions:
139139
" hi rustAssert ctermfg=yellow

0 commit comments

Comments
 (0)