runtime(vim): Update base-syntax, match Vim9 bool/null literal args to :if/:while/:return
Match Vim9 boolean and null literals in expression arguments of :if, :elseif, :while and :return. closes: #15684 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
0f5effbd1f
commit
4d427d4cab
@ -1,7 +1,7 @@
|
||||
" Vim syntax file generator
|
||||
" Language: Vim script
|
||||
" Maintainer: Hirohito Higashi (h_east)
|
||||
" Last Change: 2024 Aug 30
|
||||
" Last Change: 2024 Sep 14
|
||||
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
@ -296,12 +296,14 @@ function! s:get_vim_command_type(cmd_name)
|
||||
echomsg
|
||||
echon
|
||||
echowindow
|
||||
elseif
|
||||
enddef
|
||||
endfunction
|
||||
execute
|
||||
final
|
||||
for
|
||||
function
|
||||
if
|
||||
insert
|
||||
let
|
||||
loadkeymap
|
||||
@ -312,6 +314,7 @@ function! s:get_vim_command_type(cmd_name)
|
||||
new
|
||||
normal
|
||||
popup
|
||||
return
|
||||
set
|
||||
setglobal
|
||||
setlocal
|
||||
@ -325,6 +328,7 @@ function! s:get_vim_command_type(cmd_name)
|
||||
unmap
|
||||
var
|
||||
vim9script
|
||||
while
|
||||
EOL
|
||||
" Required for original behavior
|
||||
" \ 'global', 'vglobal'
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
" Language: Vim script
|
||||
" Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com>
|
||||
" Doug Kearns <dougkearns@gmail.com>
|
||||
" Last Change: 2024 Aug 30
|
||||
" Last Change: 2024 Sep 14
|
||||
" Former Maintainer: Charles E. Campbell
|
||||
|
||||
" DO NOT CHANGE DIRECTLY.
|
||||
@ -688,7 +688,7 @@ if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror")
|
||||
syn match vimBufnrWarn /\<bufnr\s*(\s*["']\.['"]\s*)/
|
||||
endif
|
||||
|
||||
syn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<retu\%[rn]\>\|\<while\>" skipwhite nextgroup=vimOper,vimOperParen,vimVar,vimFunc,vimNotation
|
||||
syn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<retu\%[rn]\>\|\<while\>" skipwhite nextgroup=@vimExprList,vimNotation
|
||||
|
||||
" Match: {{{2
|
||||
" =====
|
||||
|
||||
Reference in New Issue
Block a user