runtime(vim): Update syntax file, fix missing for highlight (#13668)

Commit: 
https://github.com/vim/vim/commit/1c97b5c0c0b4a60d652b78da4470aeb8a7509700
Author: dkearns <[email protected]>
Date:   Wed Dec 13 02:47:43 2023 +1100

    runtime(vim): Update syntax file, fix missing for highlight 
(https://github.com/vim/vim/issues/13668)
    
    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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/syntax/testdir/dumps/vim_variables_07.dump 
b/runtime/syntax/testdir/dumps/vim_variables_07.dump
index 8be0fa802..f0288f0ad 100644
--- a/runtime/syntax/testdir/dumps/vim_variables_07.dump
+++ b/runtime/syntax/testdir/dumps/vim_variables_07.dump
@@ -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
diff --git a/runtime/syntax/testdir/dumps/vim_variables_99.dump 
b/runtime/syntax/testdir/dumps/vim_variables_99.dump
index 6f3e1c444..003603ec3 100644
--- a/runtime/syntax/testdir/dumps/vim_variables_99.dump
+++ b/runtime/syntax/testdir/dumps/vim_variables_99.dump
@@ -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| 
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index 5697ce3f6..c1706e0f1 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -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

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rD5B5-00G9wz-3v%40256bit.org.

Raspunde prin e-mail lui