Skip to content

Commit df1972d

Browse files
committed
---
yaml --- r: 153596 b: refs/heads/try2 c: 0a0c6da h: refs/heads/master v: v3
1 parent 03bbdd6 commit df1972d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
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: ca6ffac4e4683705b895e368375103315ca0e1ca
8+
refs/heads/try2: 0a0c6da564e91a241feadae8bc1f5ad879045042
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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: Patrick Walton <[email protected]>
44
" Maintainer: Ben Blum <[email protected]>
55
" Maintainer: Chris Morgan <[email protected]>
6-
" Last Change: July 06, 2014
6+
" Last Change: July 18, 2014
77

88
if version < 600
99
syntax clear
@@ -38,7 +38,7 @@ syn keyword rustKeyword for in if impl let
3838
syn keyword rustKeyword loop once proc pub
3939
syn keyword rustKeyword return super
4040
syn keyword rustKeyword unsafe virtual while
41-
syn keyword rustKeyword use nextgroup=rustModPath skipwhite skipempty
41+
syn keyword rustKeyword use nextgroup=rustModPath,rustModPathInUse skipwhite skipempty
4242
" FIXME: Scoped impl's name is also fallen in this category
4343
syn keyword rustKeyword mod trait struct enum type nextgroup=rustIdentifier skipwhite skipempty
4444
syn keyword rustStorage mut ref static const
@@ -142,8 +142,9 @@ syn keyword rustBoolean true false
142142
" If foo::bar changes to foo.bar, change this ("::" to "\.").
143143
" If foo::bar changes to Foo::bar, change this (first "\w" to "\u").
144144
syn match rustModPath "\w\(\w\)*::[^<]"he=e-3,me=e-3
145-
syn match rustModPath "\w\(\w\)*" contained " only for 'use path;'
145+
syn match rustModPathInUse "\w\(\w\)*" contained " only for 'use path;'
146146
syn match rustModPathSep "::"
147+
" rustModPathInUse is split out from rustModPath so that :syn-include can get the group list right.
147148

148149
syn match rustFuncCall "\w\(\w\)*("he=e-1,me=e-1
149150
syn match rustFuncCall "\w\(\w\)*::<"he=e-3,me=e-3 " foo::<T>();
@@ -262,6 +263,7 @@ hi def link rustReservedKeyword Error
262263
hi def link rustConditional Conditional
263264
hi def link rustIdentifier Identifier
264265
hi def link rustCapsIdent rustIdentifier
266+
hi def link rustModPathInUse rustModPath
265267
hi def link rustModPath Include
266268
hi def link rustModPathSep Delimiter
267269
hi def link rustFunction Function

0 commit comments

Comments
 (0)