We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$()?
1 parent 889b9a7 commit 3baafd3Copy full SHA for 3baafd3
syntax/rust.vim
@@ -67,7 +67,7 @@ syn keyword rustObsoleteExternMod mod contained nextgroup=rustIdentifier skipw
67
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
68
syn match rustFuncName "\%(r#\)\=\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
69
70
-syn region rustMacroRepeat matchgroup=rustMacroRepeatDelimiters start="$(" end="),\=[*+]" contains=TOP
+syn region rustMacroRepeat matchgroup=rustMacroRepeatDelimiters start="$(" end="),\=[*+?]" contains=TOP
71
syn match rustMacroVariable "$\w\+"
72
syn match rustRawIdent "\<r#\h\w*" contains=NONE
73
0 commit comments