diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-28 18:08:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 18:08:05 +0800 |
commit | c804d7968bb54eaac240e879346e7ad55a03b77b (patch) | |
tree | 15089c717946d364229d7bfd609af2b2dbd350c4 | |
parent | b499ccb2fa632f127d1270535692cc687a5156bf (diff) | |
download | rneovim-c804d7968bb54eaac240e879346e7ad55a03b77b.tar.gz rneovim-c804d7968bb54eaac240e879346e7ad55a03b77b.tar.bz2 rneovim-c804d7968bb54eaac240e879346e7ad55a03b77b.zip |
vim-patch:982e191b38b4 (#28073)
runtime(vim): Update base-syntax, match empty blob and :abclear modifiers (vim/vim#14318)
- Match empty blob literals.
- Match modifier arguments to :abclear commands.
https://github.com/vim/vim/commit/982e191b38b493d148d73871a724381214e4c62f
Co-authored-by: dkearns <dougkearns@gmail.com>
-rw-r--r-- | runtime/syntax/vim.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 640102562b..e665ec8e14 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -150,6 +150,7 @@ syn match vimNumber '\<\d\+\%(\.\d\+\%(e[+-]\=\d\+\)\=\)\=' skipwhite nextgroup= syn match vimNumber '\<0b[01]\+' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,vimComment,vim9Comment syn match vimNumber '\<0o\=\o\+' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,vimComment,vim9Comment syn match vimNumber '\<0x\x\+' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,vimComment,vim9Comment +syn match vimNumber '\<0z\>' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,vimComment,vim9Comment syn match vimNumber '\<0z\%(\x\x\)\+\%(\.\%(\x\x\)\+\)*' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,vimComment,vim9Comment syn match vimNumber '\%(^\|\A\)\zs#\x\{6}' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,vimComment,vim9Comment syn case match @@ -465,6 +466,8 @@ syn keyword vimFor for skipwhite nextgroup=vimVar,vimVarList " ============= " GEN_SYN_VIM: vimCommand abbrev, START_STR='syn keyword vimAbb', END_STR='skipwhite nextgroup=vimMapMod,vimMapLhs' syn keyword vimAbb ab[breviate] ca[bbrev] cnorea[bbrev] cuna[bbrev] ia[bbrev] inorea[bbrev] iuna[bbrev] norea[bbrev] una[bbreviate] skipwhite nextgroup=vimMapMod,vimMapLhs +" GEN_SYN_VIM: vimCommand abclear, START_STR='syn keyword vimAbb', END_STR='skipwhite nextgroup=vimMapMod' +syn keyword vimAbb abc[lear] cabc[lear] iabc[lear] skipwhite nextgroup=vimMapMod " Autocmd: {{{2 " ======= |