33" Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com>
44" Doug Kearns <dougkearns@gmail.com>
55" URL: https://github.com/vim-jp/syntax-vim-ex
6- " Last Change: 2024 Apr 11
6+ " Last Change: 2024 Apr 13
77" Former Maintainer: Charles E. Campbell
88
99" DO NOT CHANGE DIRECTLY.
@@ -116,7 +116,7 @@ syn keyword vimFuncName contained test_mswin_event test_null_blob test_null_chan
116116" Special Vim Highlighting (not automatic) {{{1
117117
118118" Set up folding commands for this syntax highlighting file {{{2
119- if exists (" g:vimsyn_folding" ) && g: vimsyn_folding = ~# ' [afhlmpPrt ]'
119+ if exists (" g:vimsyn_folding" ) && g: vimsyn_folding = ~# ' [afhHlmpPrt ]'
120120 if g: vimsyn_folding = ~# ' a'
121121 com ! -nargs =* VimFolda <args> fold
122122 else
@@ -132,6 +132,11 @@ if exists("g:vimsyn_folding") && g:vimsyn_folding =~# '[afhlmpPrt]'
132132 else
133133 com ! -nargs =* VimFoldh <args>
134134 endif
135+ if g: vimsyn_folding = ~# ' H'
136+ com ! -nargs =* VimFoldH <args> fold
137+ else
138+ com ! -nargs =* VimFoldH <args>
139+ endif
135140 if g: vimsyn_folding = ~# ' l'
136141 com ! -nargs =* VimFoldl <args> fold
137142 else
166171 com ! -nargs =* VimFolda <args>
167172 com ! -nargs =* VimFoldf <args>
168173 com ! -nargs =* VimFoldh <args>
174+ com ! -nargs =* VimFoldH <args>
169175 com ! -nargs =* VimFoldl <args>
170176 com ! -nargs =* VimFoldm <args>
171177 com ! -nargs =* VimFoldp <args>
@@ -871,11 +877,11 @@ syn region vimGlobal matchgroup=Statement start='\<v\%[global]!\=/' skip='\\.' e
871877" ==================
872878
873879if s: vim9script
874- syn cluster vimLegacyTop contains =TOP,vimPreVim9script ,vim9Comment,vim9LineComment
875- syn region vimPreVim9script start =" \% ^" end =" ^\z e\s *vim9s\% [cript]\> " contains =@vimLegacyTop,vimComment,vimLineComment
880+ syn cluster vimLegacyTop contains =TOP,vim9LegacyHeader ,vim9Comment,vim9LineComment
881+ VimFoldH syn region vim9LegacyHeader start =" \% ^" end =" ^\z e\s *vim9s\% [cript]\> " contains =@vimLegacyTop,vimComment,vimLineComment
876882
877- syn keyword vim9ScriptArg noclear
878- syn keyword vimCommand vim9s[cript] nextgroup =vim9ScriptArg skipwhite
883+ syn keyword vim9Vim9ScriptArg noclear contained
884+ syn keyword vim9Vim9Script vim9s[cript] nextgroup =vim9Vim9ScriptArg skipwhite
879885endif
880886
881887" Embedded Scripts: {{{2
@@ -1085,7 +1091,7 @@ if !exists("skip_vim_syntax_inits")
10851091 hi def link vimBufnrWarn vimWarn
10861092 endif
10871093
1088- hi def link vim9ScriptArg Special
1094+ hi def link vim9Vim9ScriptArg Special
10891095 hi def link vimAbb vimCommand
10901096 hi def link vimAddress vimMark
10911097 hi def link vimAugroupBang vimBang
@@ -1215,6 +1221,7 @@ if !exists("skip_vim_syntax_inits")
12151221 hi def link vimSetMod vimOption
12161222 hi def link vimSetSep Statement
12171223 hi def link vimSetString vimString
1224+ hi def link vim9Vim9Script vimCommand
12181225 hi def link vimSpecFile Identifier
12191226 hi def link vimSpecFileMod vimSpecFile
12201227 hi def link vimSpecial Type
@@ -1279,6 +1286,8 @@ let b:current_syntax = "vim"
12791286" Cleanup: {{{1
12801287delc VimFolda
12811288delc VimFoldf
1289+ delc VimFoldh
1290+ delc VimFoldH
12821291delc VimFoldl
12831292delc VimFoldm
12841293delc VimFoldp
0 commit comments