From 7142cdef1e083c628d787abe5b5eaabe52491197 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 30 Mar 2013 17:27:12 -0400 Subject: [PATCH] vim: highlight ref + static as storage specifiers lifetimes and globals are now the only two places static is used, and 'static isn't matched by this --- src/etc/vim/syntax/rust.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index a5697a91505..9de051d7fa4 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -14,12 +14,12 @@ syn keyword rustKeyword as break syn keyword rustKeyword copy do drop else extern syn keyword rustKeyword for if impl let log syn keyword rustKeyword loop match mod once priv pub -syn keyword rustKeyword ref return static +syn keyword rustKeyword return syn keyword rustKeyword unsafe use while " FIXME: Scoped impl's name is also fallen in this category syn keyword rustKeyword mod trait struct enum type nextgroup=rustIdentifier skipwhite syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite -syn keyword rustStorage const mut +syn keyword rustStorage const mut ref static syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained