diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-09-16 06:57:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 22:57:16 +0000 |
commit | 78b85109338592c2bc89154278f2e961a14eee96 (patch) | |
tree | f40fefd51b7e62aaf40243c361300cbdfe81bfa7 /runtime/syntax/vim.vim | |
parent | 057d27a9d6ef0bb2ee5130704c45b9e9197e7c36 (diff) | |
download | rneovim-78b85109338592c2bc89154278f2e961a14eee96.tar.gz rneovim-78b85109338592c2bc89154278f2e961a14eee96.tar.bz2 rneovim-78b85109338592c2bc89154278f2e961a14eee96.zip |
vim-patch:4d427d4: runtime(vim): Update base-syntax, match Vim9 bool/null literal args to :if/:while/:return (#30391)
Match Vim9 boolean and null literals in expression arguments of :if,
:elseif, :while and :return.
closes: vim/vim#15684
https://github.com/vim/vim/commit/4d427d4cab9c942d6871c50f714e18d7edcfe135
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/syntax/vim.vim')
-rw-r--r-- | runtime/syntax/vim.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 89577ffaae..bd3723e7bb 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -685,7 +685,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 " ===== |