aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-02-16 18:59:56 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-02-16 19:06:10 +0800
commit18dfe175e750821f62d50bbe7ea49889704be70c (patch)
treecf3eaf94588e660a04d7f0ca9a1b2c0d0616b6e1
parent7751ff73943cfc68945ace47a31c1850547e2b4c (diff)
downloadrneovim-18dfe175e750821f62d50bbe7ea49889704be70c.tar.gz
rneovim-18dfe175e750821f62d50bbe7ea49889704be70c.tar.bz2
rneovim-18dfe175e750821f62d50bbe7ea49889704be70c.zip
vim-patch:fe6d5b0ae47e
runtime(vim): Update base-syntax, fix :behave highlighting closes: vim/vim#14036 https://github.com/vim/vim/commit/fe6d5b0ae47e8a178c156be7189903c91b765584 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
-rw-r--r--runtime/syntax/vim.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index 85eb742f48..12b4fc5564 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -175,12 +175,14 @@ endif
" Behave! {{{2
" =======
-syn match vimBehave "\<be\%[have]\>" skipwhite nextgroup=vimBehaveModel,vimBehaveError
-syn keyword vimBehaveModel contained mswin xterm
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nobehaveerror")
syn match vimBehaveError contained "[^ ]\+"
endif
+syn match vimBehave "\<be\%[have]\>" nextgroup=vimBehaveBang,vimBehaveModel,vimBehaveError skipwhite
+syn match vimBehaveBang contained "\a\@1<=!" nextgroup=vimBehaveModel skipwhite
+syn keyword vimBehaveModel contained mswin xterm
+hi def link vimBehaveBang vimBang
" Filetypes {{{2
" =========
syn match vimFiletype "\<filet\%[ype]\(\s\+\I\i*\)*" skipwhite contains=vimFTCmd,vimFTOption,vimFTError
@@ -926,6 +928,7 @@ if !exists("skip_vim_syntax_inits")
hi def link vimAutoCmdMod Special
hi def link vimAutoSet vimCommand
hi def link vimBang vimOper
+ hi def link vimBehaveBang vimBang
hi def link vimBehaveModel vimBehave
hi def link vimBehave vimCommand
hi def link vimBracket Delimiter