Skip to content

Commit 7142cde

Browse files
committed
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
1 parent 0224eb3 commit 7142cde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ syn keyword rustKeyword as break
1414
syn keyword rustKeyword copy do drop else extern
1515
syn keyword rustKeyword for if impl let log
1616
syn keyword rustKeyword loop match mod once priv pub
17-
syn keyword rustKeyword ref return static
17+
syn keyword rustKeyword return
1818
syn keyword rustKeyword unsafe use while
1919
" FIXME: Scoped impl's name is also fallen in this category
2020
syn keyword rustKeyword mod trait struct enum type nextgroup=rustIdentifier skipwhite
2121
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite
22-
syn keyword rustStorage const mut
22+
syn keyword rustStorage const mut ref static
2323

2424
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
2525
syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained

0 commit comments

Comments
 (0)