Skip to content

Commit

Permalink
runtime(vim): Update syntax file, fix missing for highlight (#13668)
Browse files Browse the repository at this point in the history
Fix highlighting of :for command.  Link the vimFor syntax group to the
vimCommand highlight group.

Error introduced in commit f686921

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
  • Loading branch information
dkearns committed Dec 12, 2023
1 parent ec54af4 commit 1c97b5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtime/syntax/testdir/dumps/vim_variables_07.dump
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
@75
|"+0#0000e05&| |:|f|o|r| +0#0000000&@68
@75
|f|o|r| |f+0#00e0e07&|o@1| +0#0000000&|i+0#af5f00255&|n| +0#0000000&|e|x|p|r| @59
|f+0#af5f00255&|o|r| +0#0000000&|f+0#00e0e07&|o@1| +0#0000000&|i+0#af5f00255&|n| +0#0000000&|e|x|p|r| @59
|e+0#af5f00255&|n|d|f|o|r| +0#0000000&@68
@75
|f|o|r| |[|f+0#00e0e07&|o@1|,+0#0000000&| |b+0#00e0e07&|a|r|]+0#0000000&| |i+0#af5f00255&|n| +0#0000000&|e|x|p|r| @52
|f+0#af5f00255&|o|r| +0#0000000&|[|f+0#00e0e07&|o@1|,+0#0000000&| |b+0#00e0e07&|a|r|]+0#0000000&| |i+0#af5f00255&|n| +0#0000000&|e|x|p|r| @52
|e+0#af5f00255&|n|d|f|o|r| +0#0000000&@68
|~+0#4040ff13&| @73
|~| @73
Expand Down
4 changes: 2 additions & 2 deletions runtime/syntax/testdir/dumps/vim_variables_99.dump
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
@75
|"+0#0000e05&| |:|f|o|r| +0#0000000&@68
@75
|f|o|r| |f+0#00e0e07&|o@1| +0#0000000&|i+0#af5f00255&|n| +0#0000000&|e|x|p|r| @59
|f+0#af5f00255&|o|r| +0#0000000&|f+0#00e0e07&|o@1| +0#0000000&|i+0#af5f00255&|n| +0#0000000&|e|x|p|r| @59
|e+0#af5f00255&|n|d|f|o|r| +0#0000000&@68
@75
|f|o|r| |[|f+0#00e0e07&|o@1|,+0#0000000&| |b+0#00e0e07&|a|r|]+0#0000000&| |i+0#af5f00255&|n| +0#0000000&|e|x|p|r| @52
|f+0#af5f00255&|o|r| +0#0000000&|[|f+0#00e0e07&|o@1|,+0#0000000&| |b+0#00e0e07&|a|r|]+0#0000000&| |i+0#af5f00255&|n| +0#0000000&|e|x|p|r| @52
>e+0#af5f00255&|n|d|f|o|r| +0#0000000&@68
@57|1|3|8|,|1| @8|B|o|t|
1 change: 1 addition & 0 deletions runtime/syntax/vim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,7 @@ if !exists("skip_vim_syntax_inits")
hi def link vimFuncEcho vimCommand
hi def link vimHiCtermul vimHiTerm
hi def link vimFold Folded
hi def link vimFor vimCommand
hi def link vimFTCmd vimCommand
hi def link vimFTOption vimSynType
hi def link vimFuncKey vimCommand
Expand Down

0 comments on commit 1c97b5c

Please sign in to comment.