Skip to content

Commit 953b100

Browse files
rhysdda-x
authored andcommitted
fix highlighting macro repeat $()* and $()+
1 parent 2b916c8 commit 953b100

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

syntax/rust.vim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ syn keyword rustObsoleteExternMod mod contained nextgroup=rustIdentifier skipw
6767
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
6868
syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
6969

70-
syn region rustMacroRepeat matchgroup=rustMacroRepeatDelimiters start="$(" end=")" contains=TOP nextgroup=rustMacroRepeatCount
71-
syn match rustMacroRepeatCount ".\?[*+]" contained
70+
syn region rustMacroRepeat matchgroup=rustMacroRepeatDelimiters start="$(" end="),\=[*+]" contains=TOP
7271
syn match rustMacroVariable "$\w\+"
7372

7473
" Reserved (but not yet used) keywords {{{2
@@ -278,7 +277,6 @@ hi def link rustIdentifierPrime rustIdentifier
278277
hi def link rustTrait rustType
279278
hi def link rustDeriveTrait rustTrait
280279

281-
hi def link rustMacroRepeatCount rustMacroRepeatDelimiters
282280
hi def link rustMacroRepeatDelimiters Macro
283281
hi def link rustMacroVariable Define
284282
hi def link rustSigil StorageClass

0 commit comments

Comments
 (0)