From df1795cd6bdf7e1db31c87d4a33d89a2c8269560 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 23 Feb 2024 07:13:33 +0800 Subject: [PATCH] vim-patch:1624970d321c (#27582) runtime(vim): Update base-syntax, fix :unabbrev highlighting (vim/vim#14077) Fixes issue vim/vim#7876 https://github.com/vim/vim/commit/1624970d321cfb637ac76232df9c9b3f2fae904c Co-authored-by: dkearns --- runtime/syntax/vim.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 846a3be905..d2430add19 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -416,7 +416,7 @@ syn keyword vimFor for skipwhite nextgroup=vimVar,vimVarList " Abbreviations: {{{2 " ============= " 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] ia[bbrev] inorea[bbrev] norea[bbrev] 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 " Autocmd: {{{2 " ======= @@ -441,12 +441,13 @@ syn match vimMap "\\ze\s*(\@!" skipwhite nextgroup=vimMapMod,vimMapL syn match vimMap "\" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs syn match vimMapRhs contained ".*" contains=vimNotation,vimCtrlChar skipnl nextgroup=vimMapRhsExtend syn match vimMapRhsExtend contained "^\s*\\.*$" contains=vimContinue