mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:fe6d5b0ae47e
runtime(vim): Update base-syntax, fix :behave highlighting
closes: vim/vim#14036
fe6d5b0ae4
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
parent
7751ff7394
commit
18dfe175e7
@ -175,12 +175,14 @@ endif
|
|||||||
|
|
||||||
" Behave! {{{2
|
" 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")
|
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nobehaveerror")
|
||||||
syn match vimBehaveError contained "[^ ]\+"
|
syn match vimBehaveError contained "[^ ]\+"
|
||||||
endif
|
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
|
" Filetypes {{{2
|
||||||
" =========
|
" =========
|
||||||
syn match vimFiletype "\<filet\%[ype]\(\s\+\I\i*\)*" skipwhite contains=vimFTCmd,vimFTOption,vimFTError
|
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 vimAutoCmdMod Special
|
||||||
hi def link vimAutoSet vimCommand
|
hi def link vimAutoSet vimCommand
|
||||||
hi def link vimBang vimOper
|
hi def link vimBang vimOper
|
||||||
|
hi def link vimBehaveBang vimBang
|
||||||
hi def link vimBehaveModel vimBehave
|
hi def link vimBehaveModel vimBehave
|
||||||
hi def link vimBehave vimCommand
|
hi def link vimBehave vimCommand
|
||||||
hi def link vimBracket Delimiter
|
hi def link vimBracket Delimiter
|
||||||
|
Loading…
Reference in New Issue
Block a user