mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 20:30:40 -06:00
vim-patch:2e4c98b: runtime(vim): Update base syntax, match Vim9 :unlet command (#37662)
closes: vim/vim#19290 https://github.com/vim/vim/commit/2e4c98b6f3db7d8e43645ccdf0b293cb07507ee1 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
1 parent
5da2a4b59a
commit
0566767d7d
1 file changed
+3
-3
@@ -1156,11 +1156,11 @@ syn region vimLetVarSubscript contained
|
||||
\ skipwhite nextgroup=vimLetVarSubscript,vimLetHeredoc
|
||||
\ contains=@vimExprList
|
||||
|
||||
VimL syn keyword vimUnlet unl[et] skipwhite nextgroup=vimUnletBang,vimUnletVars
|
||||
syn keyword vimUnlet unl[et] skipwhite nextgroup=vimUnletBang,vimUnletVars
|
||||
syn match vimUnletBang contained "\a\@1<=!" skipwhite nextgroup=vimUnletVars
|
||||
syn region vimUnletVars contained
|
||||
\ start="$\I\|\h" skip=+\n\s*\%(\\\|"\\ \)\|^\s*"\\ + end="$" end="\ze[|"]"
|
||||
\ nextgroup=vimCmdSep,vimComment
|
||||
\ start="$\I\|\h" skip=+\n\s*\%(\\\|["#]\\ \)\|^\s*["#]\\ + end="$" end=+\ze\s*[|"#]+
|
||||
\ skipwhite nextgroup=vimCmdSep,vimComment,vim9Comment
|
||||
\ contains=@vimContinue,vimEnvvar,vimVar,vimVimVar
|
||||
|
||||
" TODO: type error after register or environment variables (strings)
|
||||
|
||||
Reference in new issue
Block a user