Skip to content

Commit 91695ab

Browse files
committed
---
yaml --- r: 22005 b: refs/heads/snap-stage3 c: 8baed1f h: refs/heads/master i: 22003: c864d10 v: v3
1 parent cd5293c commit 91695ab

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
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: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: acab1cd2ceff321b5e06cf914ad905b4b2545d63
4+
refs/heads/snap-stage3: 8baed1f25f5fcec221dfd93e0c29b723725bcabe
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/etc/vim/syntax/rust.vim

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: Rust
33
" Maintainer: Patrick Walton <[email protected]>
4-
" Maintainer: Ben Blum <bblum@mozilla.com>
4+
" Maintainer: Ben Blum <bblum@cs.cmu.edu>
55
" Last Change: 2012 Jul 06
66

77
if version < 600
@@ -14,7 +14,7 @@ syn match rustAssert "\<assert\(\w\)*"
1414
syn keyword rustKeyword again as break
1515
syn keyword rustKeyword const copy do drop else export extern fail
1616
syn keyword rustKeyword for if impl import in let log
17-
syn keyword rustKeyword loop match mod module move mut new of owned priv pure
17+
syn keyword rustKeyword loop match mod module move mut new of priv pure
1818
syn match rustKeyword "\<pub\>"
1919
syn keyword rustKeyword ref return static to unchecked
2020
syn match rustKeyword "\<unsafe\>" " Allows also matching unsafe::foo()
@@ -42,6 +42,11 @@ syn keyword rustType size_t ptrdiff_t clock_t time_t
4242
syn keyword rustType c_longlong c_ulonglong intptr_t uintptr_t
4343
syn keyword rustType off_t dev_t ino_t pid_t mode_t ssize_t
4444

45+
syn keyword rustTrait Const Copy Send Owned " inherent traits
46+
syn keyword rustTrait Eq Ord Num Ptr
47+
syn keyword rustTrait Add Sub Mul Div Modulo Neg BitAnd BitOr BitXor
48+
syn keyword rustTrait Shl Shr Index
49+
4550
syn keyword rustSelf self
4651
syn keyword rustBoolean true false
4752

@@ -109,6 +114,7 @@ syn keyword rustTodo TODO FIXME XXX NB
109114
hi def link rustHexNumber rustNumber
110115
hi def link rustBinNumber rustNumber
111116
hi def link rustIdentifierPrime rustIdentifier
117+
hi def link rustTrait rustType
112118

113119
hi def link rustFormat Special
114120
hi def link rustString String

0 commit comments

Comments
 (0)