Skip to content

Commit d045677

Browse files
rhysdda-x
authored andcommitted
highlight in with the same color as for
1 parent 60630ef commit d045677

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

syntax/rust.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ syn match rustRepeat /\<for\>/
2121
" Highlight `for` keyword in `impl ... for ... {}` statement. This line must
2222
" be put after previous `syn match` line to overwrite it.
2323
syn match rustKeyword /\%(\<impl\>.\+\)\@<=\<for\>/
24+
syn keyword rustRepeat in
2425
syn keyword rustTypedef type nextgroup=rustIdentifier skipwhite skipempty
2526
syn keyword rustStructure struct enum nextgroup=rustIdentifier skipwhite skipempty
2627
syn keyword rustUnion union nextgroup=rustIdentifier skipwhite skipempty contained
@@ -38,7 +39,7 @@ syn keyword rustKeyword continue
3839
syn keyword rustKeyword crate
3940
syn keyword rustKeyword extern nextgroup=rustExternCrate,rustObsoleteExternMod skipwhite skipempty
4041
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite skipempty
41-
syn keyword rustKeyword in impl let
42+
syn keyword rustKeyword impl let
4243
syn keyword rustKeyword macro
4344
syn keyword rustKeyword pub nextgroup=rustPubScope skipwhite skipempty
4445
syn keyword rustKeyword return

0 commit comments

Comments
 (0)