Skip to content

Commit a2716f6

Browse files
committed
---
yaml --- r: 41447 b: refs/heads/snap-stage3 c: 2846e03 h: refs/heads/master i: 41445: 1adf8ce 41443: 6772ef5 41439: 115e1a5 v: v3
1 parent 87246bb commit a2716f6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8ebdb1a11bb356a3ef7ab7f549144e44e0d313ea
4+
refs/heads/snap-stage3: 2846e033d7eb961a5043a8cf5b8c6f516ba97b90
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)