From 1df5c527913848debea6b14b0be49066c155044c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 24 Jul 2012 21:09:42 -0700 Subject: [PATCH] vim: Highlight "struct" --- 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 b54b61bd527..596c030f96d 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -20,7 +20,7 @@ syn keyword rustKeyword ret self 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 -syn keyword rustKeyword mod iface trait class enum type nextgroup=rustIdentifier skipwhite +syn keyword rustKeyword mod iface trait class struct enum type nextgroup=rustIdentifier skipwhite syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite syn match rustIdentifier "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained