mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
runtime(vim): Update base-syntax, fix :behave highlighting
closes: #14036 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
5c3855bcab
commit
fe6d5b0ae4
@ -185,12 +185,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
|
||||||
@ -929,6 +931,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
|
||||||
|
20
runtime/syntax/testdir/dumps/vim_ex_behave_00.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_behave_00.dump
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
>"+0#0000e05#ffffff0| |V|i|m| |b|e|h|a|v|e| |c|o|m@1|a|n|d| +0#0000000&@54
|
||||||
|
@75
|
||||||
|
|b+0#af5f00255&|e|h|a|v|e| +0#0000000&|m+0#af5f00255&|s|w|i|n| +0#0000000&@62
|
||||||
|
|b+0#af5f00255&|e|h|a|v|e| +0#0000000&|x+0#af5f00255&|t|e|r|m| +0#0000000&@62
|
||||||
|
@75
|
||||||
|
|b+0#af5f00255&|e|h|a|v|e|!| +0#0000000&|m+0#af5f00255&|s|w|i|n| +0#0000000&@61
|
||||||
|
|b+0#af5f00255&|e|h|a|v|e|!| +0#0000000&|x+0#af5f00255&|t|e|r|m| +0#0000000&@61
|
||||||
|
|~+0#4040ff13&| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|"+0#0000000&|i|n|p|u|t|/|v|i|m|_|e|x|_|b|e|h|a|v|e|.|v|i|m|"| |7|L|,| |7@1|B| @23|1|,|1| @10|A|l@1|
|
20
runtime/syntax/testdir/dumps/vim_ex_behave_99.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_behave_99.dump
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|"+0#0000e05#ffffff0| |V|i|m| |b|e|h|a|v|e| |c|o|m@1|a|n|d| +0#0000000&@54
|
||||||
|
@75
|
||||||
|
|b+0#af5f00255&|e|h|a|v|e| +0#0000000&|m+0#af5f00255&|s|w|i|n| +0#0000000&@62
|
||||||
|
|b+0#af5f00255&|e|h|a|v|e| +0#0000000&|x+0#af5f00255&|t|e|r|m| +0#0000000&@62
|
||||||
|
@75
|
||||||
|
|b+0#af5f00255&|e|h|a|v|e|!| +0#0000000&|m+0#af5f00255&|s|w|i|n| +0#0000000&@61
|
||||||
|
>b+0#af5f00255&|e|h|a|v|e|!| +0#0000000&|x+0#af5f00255&|t|e|r|m| +0#0000000&@61
|
||||||
|
|~+0#4040ff13&| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|"+0#0000000&|i|n|p|u|t|/|v|i|m|_|e|x|_|b|e|h|a|v|e|.|v|i|m|"| |7|L|,| |7@1|B| @23|7|,|1| @10|A|l@1|
|
7
runtime/syntax/testdir/input/vim_ex_behave.vim
Normal file
7
runtime/syntax/testdir/input/vim_ex_behave.vim
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
" Vim behave command
|
||||||
|
|
||||||
|
behave mswin
|
||||||
|
behave xterm
|
||||||
|
|
||||||
|
behave! mswin
|
||||||
|
behave! xterm
|
@ -227,12 +227,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
|
||||||
@ -977,6 +979,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…
x
Reference in New Issue
Block a user