@@ -17,13 +17,13 @@ syn keyword rustConditional match if else
17
17
syn keyword rustOperator as
18
18
19
19
syn match rustAssert " \< assert\(\w\) *!" contained
20
- syn match rustFail " \< fail \(\w\) *!" contained
20
+ syn match rustPanic " \< panic \(\w\) *!" contained
21
21
syn keyword rustKeyword break
22
22
syn keyword rustKeyword box nextgroup =rustBoxPlacement skipwhite skipempty
23
23
syn keyword rustKeyword continue
24
24
syn keyword rustKeyword extern nextgroup =rustExternCrate,rustObsoleteExternMod skipwhite skipempty
25
25
syn keyword rustKeyword fn nextgroup =rustFuncName skipwhite skipempty
26
- syn keyword rustKeyword for in if impl let
26
+ syn keyword rustKeyword for in if impl let move
27
27
syn keyword rustKeyword loop once proc pub
28
28
syn keyword rustKeyword return super
29
29
syn keyword rustKeyword unsafe virtual where while
@@ -151,8 +151,8 @@ syn match rustSigil display /[&~@*][^)= \t\r\n]/he=e-1,me=e-1
151
151
" Last, because the & in && isn't a sigil
152
152
syn match rustOperator display " &&\| ||"
153
153
154
- syn match rustMacro ' \w\(\w\) *!' contains =rustAssert,rustFail
155
- syn match rustMacro ' #\w\(\w\) *' contains =rustAssert,rustFail
154
+ syn match rustMacro ' \w\(\w\) *!' contains =rustAssert,rustPanic
155
+ syn match rustMacro ' #\w\(\w\) *' contains =rustAssert,rustPanic
156
156
157
157
syn match rustEscapeError display contained / \\ ./
158
158
syn match rustEscape display contained / \\\( [nrt0\\ '"]\| x\x\{ 2}\) /
@@ -263,7 +263,7 @@ hi def link rustCommentLineDoc SpecialComment
263
263
hi def link rustCommentBlock rustCommentLine
264
264
hi def link rustCommentBlockDoc rustCommentLineDoc
265
265
hi def link rustAssert PreCondit
266
- hi def link rustFail PreCondit
266
+ hi def link rustPanic PreCondit
267
267
hi def link rustMacro Macro
268
268
hi def link rustType Type
269
269
hi def link rustTodo Todo
@@ -282,7 +282,7 @@ hi def link rustBoxPlacementExpr rustKeyword
282
282
" hi rustAttribute ctermfg=cyan
283
283
" hi rustDeriving ctermfg=cyan
284
284
" hi rustAssert ctermfg=yellow
285
- " hi rustFail ctermfg=red
285
+ " hi rustPanic ctermfg=red
286
286
" hi rustMacro ctermfg=magenta
287
287
288
288
syn sync minlines =200
0 commit comments