diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-13 09:05:01 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-02-13 09:05:31 +0800 |
commit | 212fce16362052438c5b32195e9dd1b45b525a5f (patch) | |
tree | 4a9d691cd5a603305912f90e72d7398ea5abab2a | |
parent | 3b4ef34fc36c35e4e6d6d7420f09c4e1f03af782 (diff) | |
download | rneovim-212fce16362052438c5b32195e9dd1b45b525a5f.tar.gz rneovim-212fce16362052438c5b32195e9dd1b45b525a5f.tar.bz2 rneovim-212fce16362052438c5b32195e9dd1b45b525a5f.zip |
vim-patch:a9c0642: runtime(vim): Update base-syntax, match Vim9 boolean and null literals in parens
- Match Vim9 boolean and null literals in parenthesised expressions and
function argument lists.
- Match read-only registers in expressions.
closes: vim/vim#16622
https://github.com/vim/vim/commit/a9c06429ac2a5366ec177621f2275b166605f681
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
-rw-r--r-- | runtime/syntax/vim.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index c1a02b3a5c..9b128265de 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -253,7 +253,7 @@ syn keyword vimBehaveModel contained mswin xterm " ==== syn match vimCall "\<call\=\>" skipwhite nextgroup=vimFunc -" Debuggready {{{2 +" Debuggreedy {{{2 " =========== " TODO: special-cased until generalised range/count support is implemented syn match vimDebuggreedy "\<0\=debugg\%[reedy]\>" contains=vimCount @@ -298,7 +298,7 @@ syn keyword vimAugroupKey contained aug[roup] skipwhite nextgroup=vimAugroupBan " Operators: {{{2 " ========= -syn cluster vimOperGroup contains=@vimSpecialVar,vimFunc,vimLambda,vimOper,vimOperParen,vimNumber,vimString,vimRegister,@vimContinue,vim9Comment,vimVar,vimBoolean,vim9LambdaParams,vimNull +syn cluster vimOperGroup contains=@vimContinue,@vimExprList,vim9Comment syn match vimOper "\a\@<!!" skipwhite skipnl nextgroup=@vimOperContinue,@vimExprList,vimSpecFile syn match vimOper "||\|&&\|[-+*/%.]" skipwhite skipnl nextgroup=@vimOperContinue,@vimExprList,vimSpecFile syn match vimOper "?" skipwhite skipnl nextgroup=@vimOperContinue,@vimExprList @@ -698,7 +698,7 @@ syn match vimRegister '\<norm\s\+\zs"[a-zA-Z0-9]' syn match vimRegister '\<normal\s\+\zs"[a-zA-Z0-9]' syn match vimRegister '@"' syn match vimPlainRegister contained '"[a-zA-Z0-9\-:.%#*+=]' -syn match vimLetRegister contained '@["0-9\-a-zA-Z#=*+_/]' +syn match vimLetRegister contained '@["0-9\-a-zA-Z:.%#=*+~_/]' syn match vimAddress ",\zs[.$]" skipwhite nextgroup=vimSubst1 syn match vimAddress "%\ze\a" skipwhite nextgroup=vimString,vimSubst1 |