@@ -157,8 +157,8 @@ syn region rustString start=+b"+ skip=+\\\\\|\\"+ end=+"+ contains=rustE
157157syn region rustString start =+ "+ skip =+ \\\\\|\\ "+ end =+ "+ contains =rustEscape,rustEscapeUnicode,rustEscapeError,rustStringContinuation,@Spell
158158syn region rustString start =' b\? r\z (#*\) "' end =' "\z 1' contains =@Spell
159159
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
162162
163163" Number literals
164164syn match rustDecNumber display " \< [0-9][0-9_]*\% ([iu]\% (8\| 16\| 32\| 64\)\=\)\= "
@@ -263,7 +263,7 @@ hi def link rustMacro Macro
263263hi def link rustType Type
264264hi def link rustTodo Todo
265265hi def link rustAttribute PreProc
266- hi def link rustDeriving PreProc
266+ hi def link rustDerive PreProc
267267hi def link rustStorage StorageClass
268268hi def link rustObsoleteStorage Error
269269hi def link rustLifetime Special
@@ -275,7 +275,7 @@ hi def link rustBoxPlacementExpr rustKeyword
275275
276276" Other Suggestions:
277277" hi rustAttribute ctermfg=cyan
278- " hi rustDeriving ctermfg=cyan
278+ " hi rustDerive ctermfg=cyan
279279" hi rustAssert ctermfg=yellow
280280" hi rustPanic ctermfg=red
281281" hi rustMacro ctermfg=magenta
0 commit comments