From be4f9753e49b8feefe0283adf0c966166bb96f29 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 16 Aug 2012 15:43:14 -0700 Subject: [PATCH] vim: "ref" and "static" are now keywords; highlight them as such --- src/etc/vim/syntax/rust.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 70b8698553e..93cab8445dd 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 to unchecked +syn keyword rustKeyword ref ret return static 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