@@ -34,7 +34,7 @@ syn match rustAssert "\<assert\(\w\)*!" contained
34
34
syn match rustPanic " \< panic\(\w\) *!" contained
35
35
syn match rustAsync " \< async\% (\s\|\n\)\@ ="
36
36
syn keyword rustKeyword break
37
- syn keyword rustKeyword box nextgroup = rustBoxPlacement skipwhite skipempty
37
+ syn keyword rustKeyword box
38
38
syn keyword rustKeyword continue
39
39
syn keyword rustKeyword crate
40
40
syn keyword rustKeyword extern nextgroup =rustExternCrate,rustObsoleteExternMod skipwhite skipempty
@@ -66,14 +66,6 @@ syn keyword rustObsoleteExternMod mod contained nextgroup=rustIdentifier skipw
66
66
syn match rustIdentifier contains =rustIdentifierPrime " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
67
67
syn match rustFuncName " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
68
68
69
- syn region rustBoxPlacement matchgroup =rustBoxPlacementParens start =" (" end =" )" contains =TOP contained
70
- " Ideally we'd have syntax rules set up to match arbitrary expressions. Since
71
- " we don't, we'll just define temporary contained rules to handle balancing
72
- " delimiters.
73
- syn region rustBoxPlacementBalance start =" (" end =" )" containedin =rustBoxPlacement transparent
74
- syn region rustBoxPlacementBalance start =" \[ " end =" \] " containedin =rustBoxPlacement transparent
75
- " {} are handled by rustFoldBraces
76
-
77
69
syn region rustMacroRepeat matchgroup =rustMacroRepeatDelimiters start =" $(" end =" )" contains =TOP nextgroup =rustMacroRepeatCount
78
70
syn match rustMacroRepeatCount " .\? [*+]" contained
79
71
syn match rustMacroVariable " $\w\+ "
@@ -350,7 +342,6 @@ hi def link rustLifetime Special
350
342
hi def link rustLabel Label
351
343
hi def link rustExternCrate rustKeyword
352
344
hi def link rustObsoleteExternMod Error
353
- hi def link rustBoxPlacementParens Delimiter
354
345
hi def link rustQuestionMark Special
355
346
hi def link rustAsync rustKeyword
356
347
hi def link rustAwait rustKeyword
0 commit comments