Skip to content

Commit c881a9f

Browse files
committed
---
yaml --- r: 24113 b: refs/heads/master c: 8baed1f h: refs/heads/master i: 24111: 95bbb3a v: v3
1 parent b428b21 commit c881a9f

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,5 +1,5 @@
11
---
2-
refs/heads/master: acab1cd2ceff321b5e06cf914ad905b4b2545d63
2+
refs/heads/master: 8baed1f25f5fcec221dfd93e0c29b723725bcabe
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/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)