Skip to content

Commit 52bd5c5

Browse files
committed
---
yaml --- r: 147166 b: refs/heads/try2 c: f39c883 h: refs/heads/master v: v3
1 parent 559cf93 commit 52bd5c5

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 3a4d7ff2b9faf8c6861869f0835cfd8abcf47577
8+
refs/heads/try2: f39c883598ca937b8b84720f184cdf370daf107d
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/etc/vim/syntax/rust.vim

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ syn keyword rustOperator as
1919
syn match rustAssert "\<assert\(\w\)*!" contained
2020
syn match rustFail "\<fail\(\w\)*!" contained
2121
syn keyword rustKeyword break continue do extern
22-
syn keyword rustKeyword in if impl let log
23-
syn keyword rustKeyword for impl let log
24-
syn keyword rustKeyword loop mod once priv pub
22+
syn keyword rustKeyword for in if impl let
23+
syn keyword rustKeyword loop once priv pub
2524
syn keyword rustKeyword return
2625
syn keyword rustKeyword unsafe while
2726
syn keyword rustKeyword use nextgroup=rustModPath skipwhite
2827
" FIXME: Scoped impl's name is also fallen in this category
2928
syn keyword rustKeyword mod trait struct enum type nextgroup=rustIdentifier skipwhite
3029
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite
3130
syn keyword rustKeyword proc
32-
syn keyword rustStorage const mut ref static
31+
syn keyword rustStorage mut ref static
32+
syn keyword rustObsoleteStorage const
3333

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

3737
" Reserved (but not yet used) keywords {{{2
38-
syn keyword rustKeyword alignof be offsetof pure sizeof typeof yield
38+
syn keyword rustReservedKeyword alignof be offsetof pure sizeof typeof yield
3939

4040
" Built-in types {{{2
4141
syn keyword rustType int uint float char bool u8 u16 u32 u64 f32
@@ -228,6 +228,7 @@ hi def link rustSelf Constant
228228
hi def link rustFloat Float
229229
hi def link rustOperator Operator
230230
hi def link rustKeyword Keyword
231+
hi def link rustReservedKeyword Error
231232
hi def link rustConditional Conditional
232233
hi def link rustIdentifier Identifier
233234
hi def link rustCapsIdent rustIdentifier
@@ -248,6 +249,7 @@ hi def link rustTodo Todo
248249
hi def link rustAttribute PreProc
249250
hi def link rustDeriving PreProc
250251
hi def link rustStorage StorageClass
252+
hi def link rustObsoleteStorage Error
251253
hi def link rustLifetime Special
252254

253255
" Other Suggestions:

0 commit comments

Comments
 (0)