diff options
| author | Chris Morgan <me@chrismorgan.info> | 2013-08-29 15:52:01 +1000 |
|---|---|---|
| committer | Chris Morgan <me@chrismorgan.info> | 2013-09-04 02:34:23 +1000 |
| commit | afbf908ff472f6557c01632bf531e2a21bd812c8 (patch) | |
| tree | 7b555cc7e897f93ee83f8b92c59014c3283aaf1f | |
| parent | 15f05dc581f4978c91113a0bce6ea2fdfc164ca0 (diff) | |
| download | rust-afbf908ff472f6557c01632bf531e2a21bd812c8.tar.gz rust-afbf908ff472f6557c01632bf531e2a21bd812c8.zip | |
Update a handful of keywords highlighted in Vim.
I added a few and removed a few and corrected a couple, all with reference to the prelude. It ends up a slightly arbitrary decision precisely what ends up in and what doesn't, unfortunately.
| -rw-r--r-- | src/etc/vim/syntax/rust.vim | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 6bf6946c797..dce633cd0cd 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -37,7 +37,7 @@ syn keyword rustKeyword be yield typeof syn keyword rustType int uint float char bool u8 u16 u32 u64 f32 syn keyword rustType f64 i8 i16 i32 i64 str Self -syn keyword rustType Option Either +syn keyword rustType Option Either Result Ordering " Types from libc syn keyword rustType c_float c_double c_void FILE fpos_t @@ -48,10 +48,10 @@ 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 Sized " inherent traits -syn keyword rustTrait Clone Decodable Encodable IterBytes Rand ToStr -syn keyword rustTrait Eq Ord TotalEq TotalOrd Num Ptr -syn keyword rustTrait Drop Add Sub Mul Quot Rem Neg BitAnd BitOr +syn keyword rustTrait Const Copy Freeze Send Owned Sized " inherent traits +syn keyword rustTrait Clone DeepClone Decodable Encodable IterBytes Rand ToCStr ToStr ToStrConsume FromStr +syn keyword rustTrait ApproxEq Eq Ord TotalEq TotalOrd Num Ptr Equiv +syn keyword rustTrait Drop Add Sub Mul Div Rem Not Neg BitAnd BitOr syn keyword rustTrait BitXor Shl Shr Index syn keyword rustSelf self @@ -60,9 +60,7 @@ syn keyword rustBoolean true false syn keyword rustConstant Some None " option syn keyword rustConstant Left Right " either syn keyword rustConstant Ok Err " result -syn keyword rustConstant Success Failure " task -syn keyword rustConstant Cons Nil " list -" syn keyword rustConstant empty node " tree +syn keyword rustConstant Less Equal Greater " Ordering " Constants from libc syn keyword rustConstant EXIT_FAILURE EXIT_SUCCESS RAND_MAX |
