Skip to content

Commit 7c49314

Browse files
committed
---
yaml --- r: 30713 b: refs/heads/incoming c: 8baed1f h: refs/heads/master i: 30711: d6a58e3 v: v3
1 parent 96df8dc commit 7c49314

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
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: acab1cd2ceff321b5e06cf914ad905b4b2545d63
9+
refs/heads/incoming: 8baed1f25f5fcec221dfd93e0c29b723725bcabe
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/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)