@@ -157,8 +157,8 @@ syn region rustString start=+b"+ skip=+\\\\\|\\"+ end=+"+ contains=rustE
157
157
syn region rustString start =+ "+ skip =+ \\\\\|\\ "+ end =+ "+ contains =rustEscape,rustEscapeUnicode,rustEscapeError,rustStringContinuation,@Spell
158
158
syn region rustString start =' b\? r\z (#*\) "' end =' "\z 1' contains =@Spell
159
159
160
- syn region rustAttribute start =" #!\?\[ " end =" \] " contains =rustString,rustDeriving
161
- syn region rustDeriving start =" deriving (" end =" )" contained contains =rustTrait
160
+ syn region rustAttribute start =" #!\?\[ " end =" \] " contains =rustString,rustDerive
161
+ syn region rustDerive start =" derive (" end =" )" contained contains =rustTrait
162
162
163
163
" Number literals
164
164
syn match rustDecNumber display " \< [0-9][0-9_]*\% ([iu]\% (8\| 16\| 32\| 64\)\=\)\= "
@@ -263,7 +263,7 @@ hi def link rustMacro Macro
263
263
hi def link rustType Type
264
264
hi def link rustTodo Todo
265
265
hi def link rustAttribute PreProc
266
- hi def link rustDeriving PreProc
266
+ hi def link rustDerive PreProc
267
267
hi def link rustStorage StorageClass
268
268
hi def link rustObsoleteStorage Error
269
269
hi def link rustLifetime Special
@@ -275,7 +275,7 @@ hi def link rustBoxPlacementExpr rustKeyword
275
275
276
276
" Other Suggestions:
277
277
" hi rustAttribute ctermfg=cyan
278
- " hi rustDeriving ctermfg=cyan
278
+ " hi rustDerive ctermfg=cyan
279
279
" hi rustAssert ctermfg=yellow
280
280
" hi rustPanic ctermfg=red
281
281
" hi rustMacro ctermfg=magenta
0 commit comments