Skip to content

Commit 1df5c52

Browse files
committed
vim: Highlight "struct"
1 parent a038d27 commit 1df5c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ syn keyword rustKeyword ret self to unchecked
2020
syn match rustKeyword "unsafe" " Allows also matching unsafe::foo()
2121
syn keyword rustKeyword use while with
2222
" FIXME: Scoped impl's name is also fallen in this category
23-
syn keyword rustKeyword mod iface trait class enum type nextgroup=rustIdentifier skipwhite
23+
syn keyword rustKeyword mod iface trait class struct enum type nextgroup=rustIdentifier skipwhite
2424
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite
2525

2626
syn match rustIdentifier "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained

0 commit comments

Comments
 (0)