summary refs log tree commit diff
path: root/src/etc/vim
diff options
context:
space:
mode:
authorBen Blum <bblum@andrew.cmu.edu>2012-08-09 19:54:25 -0400
committerBen Blum <bblum@andrew.cmu.edu>2012-08-09 20:29:34 -0400
commitef32a99f261091c677a0370cc9d0d00098478efd (patch)
tree5ae552aa71ccb0f1952b4bce40911c156858592f /src/etc/vim
parentd9134928552bd863295e5110e4fe1f53a6c81405 (diff)
downloadrust-ef32a99f261091c677a0370cc9d0d00098478efd.tar.gz
rust-ef32a99f261091c677a0370cc9d0d00098478efd.zip
vim: hilight 'self' as a constant instead of a keyword
Diffstat (limited to 'src/etc/vim')
-rw-r--r--src/etc/vim/syntax/rust.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim
index 3da428e914e..70b8698553e 100644
--- a/src/etc/vim/syntax/rust.vim
+++ b/src/etc/vim/syntax/rust.vim
@@ -16,7 +16,7 @@ syn keyword   rustKeyword     alt again as break
 syn keyword   rustKeyword     check claim const copy do drop else export extern fail
 syn keyword   rustKeyword     for if impl import in let log
 syn keyword   rustKeyword     loop match mod module move mut new of owned priv pub pure
-syn keyword   rustKeyword     ret return self to unchecked
+syn keyword   rustKeyword     ret return to unchecked
 syn match     rustKeyword     "unsafe" " Allows also matching unsafe::foo()
 syn keyword   rustKeyword     use while with
 " FIXME: Scoped impl's name is also fallen in this category
@@ -42,6 +42,7 @@ 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   rustSelf        self
 syn keyword   rustBoolean     true false
 
 syn keyword   rustConstant    some none       " option
@@ -112,6 +113,7 @@ hi def link rustCharacter     Character
 hi def link rustNumber        Number
 hi def link rustBoolean       Boolean
 hi def link rustConstant      Constant
+hi def link rustSelf          Constant
 hi def link rustFloat         Float
 hi def link rustAssert        Keyword
 hi def link rustKeyword       Keyword