@@ -147,7 +147,7 @@ syn match rustMacro '#\w\(\w\)*' contains=rustAssert,rustFail
147
147
148
148
syn match rustFormat display " %\(\d\+\$\)\= [-+' #0*]*\(\d *\|\*\|\*\d\+\$\)\(\.\(\d *\|\*\|\*\d\+\$\)\)\=\( [hlLjzt]\| ll\| hh\)\=\( [aAbdiuoxXDOUfFeEgGcCsSpn?]\|\[\^\= .[^]]*\]\) " contained
149
149
syn match rustFormat display " %%" contained
150
- syn match rustSpecial display contained / \\\( [nrt \\ '"]\| x\x\{ 2}\| u\x\{ 4}\| U\x\{ 8}\) /
150
+ syn match rustSpecial display contained / \\\( [nrt0 \\ '"]\| x\x\{ 2}\| u\x\{ 4}\| U\x\{ 8}\) /
151
151
syn match rustStringContinuation display contained / \\\n\s */
152
152
syn region rustString start =+ "+ skip =+ \\\\\|\\ "+ end =+ "+ contains =rustTodo,rustFormat,rustSpecial,rustStringContinuation
153
153
syn region rustString start =' r\z (#*\) "' end =' "\z 1'
@@ -176,13 +176,13 @@ syn match rustFloat display "\<[0-9][0-9_]*\.[0-9_]\+\%([eE][+-]\=[0-9
176
176
syn match rustFloat display " \< [0-9][0-9_]*\. [0-9_]\+\% ([eE][+-]\= [0-9_]\+\)\( f\| f32\| f64\)\> "
177
177
178
178
" For the benefit of delimitMate
179
- syn region rustLifetimeCandidate display start =/ &'\% (\( [^'\\ ]\|\\\( ['nrt \\\" ]\| x\x\{ 2}\| u\x\{ 4}\| U\x\{ 8}\)\) '\)\@ !/ end =/ [[:cntrl:][:space:][:punct:]]\@ =\| $/ contains =rustSigil,rustLifetime
179
+ syn region rustLifetimeCandidate display start =/ &'\% (\( [^'\\ ]\|\\\( ['nrt0 \\\" ]\| x\x\{ 2}\| u\x\{ 4}\| U\x\{ 8}\)\) '\)\@ !/ end =/ [[:cntrl:][:space:][:punct:]]\@ =\| $/ contains =rustSigil,rustLifetime
180
180
syn region rustGenericRegion display start =/ <\% ('\| [^[cntrl:][:space:][:punct:]]\)\@ =')\S\@ =/ end =/ >/ contains =rustGenericLifetimeCandidate
181
181
syn region rustGenericLifetimeCandidate display start =/ \% (<\| ,\s *\)\@ <='/ end =/ [[:cntrl:][:space:][:punct:]]\@ =\| $/ contains =rustSigil,rustLifetime
182
182
183
183
" rustLifetime must appear before rustCharacter, or chars will get the lifetime highlighting
184
184
syn match rustLifetime display " \'\% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *"
185
- syn match rustCharacter / '\( [^'\\ ]\|\\\( [nrt \\ '"]\| x\x\{ 2}\| u\x\{ 4}\| U\x\{ 8}\)\) '/ contains =rustSpecial
185
+ syn match rustCharacter / '\( [^'\\ ]\|\\\( [nrt0 \\ '"]\| x\x\{ 2}\| u\x\{ 4}\| U\x\{ 8}\)\) '/ contains =rustSpecial
186
186
187
187
syn region rustCommentML start =" /\* " end =" \* /" contains =rustTodo
188
188
syn region rustComment start =" //" end =" $" contains =rustTodo keepend
0 commit comments