From 8baed1f25f5fcec221dfd93e0c29b723725bcabe Mon Sep 17 00:00:00 2001 From: Ben Blum Date: Sun, 23 Sep 2012 23:24:07 -0400 Subject: [PATCH] vim - Update bblum's email address and highlight trait names --- src/etc/vim/syntax/rust.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 9de5c4e0676..62539de11c4 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Rust " Maintainer: Patrick Walton -" Maintainer: Ben Blum +" Maintainer: Ben Blum " Last Change: 2012 Jul 06 if version < 600 @@ -14,7 +14,7 @@ syn match rustAssert "\" syn keyword rustKeyword ref return static to unchecked syn match rustKeyword "\" " Allows also matching unsafe::foo() @@ -42,6 +42,11 @@ syn keyword rustType size_t ptrdiff_t clock_t time_t syn keyword rustType c_longlong c_ulonglong intptr_t uintptr_t syn keyword rustType off_t dev_t ino_t pid_t mode_t ssize_t +syn keyword rustTrait Const Copy Send Owned " inherent traits +syn keyword rustTrait Eq Ord Num Ptr +syn keyword rustTrait Add Sub Mul Div Modulo Neg BitAnd BitOr BitXor +syn keyword rustTrait Shl Shr Index + syn keyword rustSelf self syn keyword rustBoolean true false @@ -109,6 +114,7 @@ syn keyword rustTodo TODO FIXME XXX NB hi def link rustHexNumber rustNumber hi def link rustBinNumber rustNumber hi def link rustIdentifierPrime rustIdentifier +hi def link rustTrait rustType hi def link rustFormat Special hi def link rustString String