@@ -21,6 +21,8 @@ syn keyword rustStructure struct enum nextgroup=rustIdentifier skipwhite skipe
21
21
syn keyword rustUnion union nextgroup =rustIdentifier skipwhite skipempty contained
22
22
syn match rustUnionContextual / \< union\_ s\+\% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) */ transparent contains =rustUnion
23
23
syn keyword rustOperator as
24
+ syn keyword rustExistential existential nextgroup =rustTypedef skipwhite skipempty contained
25
+ syn match rustExistentialContextual / \< existential\_ s\+ type/ transparent contains =rustExistential,rustTypedef
24
26
25
27
syn match rustAssert " \< assert\(\w\) *!" contained
26
28
syn match rustPanic " \< panic\(\w\) *!" contained
@@ -29,7 +31,6 @@ syn keyword rustKeyword break
29
31
syn keyword rustKeyword box nextgroup =rustBoxPlacement skipwhite skipempty
30
32
syn keyword rustKeyword continue
31
33
syn keyword rustKeyword crate
32
- syn keyword rustKeyword existential
33
34
syn keyword rustKeyword extern nextgroup =rustExternCrate,rustObsoleteExternMod skipwhite skipempty
34
35
syn keyword rustKeyword fn nextgroup =rustFuncName skipwhite skipempty
35
36
syn keyword rustKeyword in impl let
@@ -293,6 +294,7 @@ hi def link rustDynKeyword rustKeyword
293
294
hi def link rustTypedef Keyword " More precise is Typedef, but it doesn't feel right for Rust
294
295
hi def link rustStructure Keyword " More precise is Structure
295
296
hi def link rustUnion rustStructure
297
+ hi def link rustExistential rustKeyword
296
298
hi def link rustPubScopeDelim Delimiter
297
299
hi def link rustPubScopeCrate rustKeyword
298
300
hi def link rustSuper rustKeyword
0 commit comments