mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
vim-patch:d4634a26cdcd
runtime(vim): Add support for `syntax foldlevel` command (vim/vim#6182)
d4634a26cd
Co-authored-by: Brad King <brad.king@kitware.com>
This commit is contained in:
parent
bdfea2a891
commit
8a6317e70a
@ -505,6 +505,13 @@ syn match vimGroupAdd contained "add=" nextgroup=vimGroupList
|
|||||||
syn match vimGroupRem contained "remove=" nextgroup=vimGroupList
|
syn match vimGroupRem contained "remove=" nextgroup=vimGroupList
|
||||||
syn cluster vimFuncBodyList add=vimSynType,vimGroupAdd,vimGroupRem
|
syn cluster vimFuncBodyList add=vimSynType,vimGroupAdd,vimGroupRem
|
||||||
|
|
||||||
|
" Syntax: foldlevel {{{2
|
||||||
|
syn keyword vimSynType contained foldlevel skipwhite nextgroup=vimSynFoldMethod,vimSynFoldMethodError
|
||||||
|
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsynfoldmethoderror")
|
||||||
|
syn match vimSynFoldMethodError contained "\i\+"
|
||||||
|
endif
|
||||||
|
syn keyword vimSynFoldMethod contained start minimum
|
||||||
|
|
||||||
" Syntax: iskeyword {{{2
|
" Syntax: iskeyword {{{2
|
||||||
syn keyword vimSynType contained iskeyword skipwhite nextgroup=vimIskList
|
syn keyword vimSynType contained iskeyword skipwhite nextgroup=vimIskList
|
||||||
syn match vimIskList contained '\S\+' contains=vimIskSep
|
syn match vimIskList contained '\S\+' contains=vimIskSep
|
||||||
@ -853,6 +860,7 @@ if !exists("skip_vim_syntax_inits")
|
|||||||
hi def link vimMapModErr vimError
|
hi def link vimMapModErr vimError
|
||||||
hi def link vimSubstFlagErr vimError
|
hi def link vimSubstFlagErr vimError
|
||||||
hi def link vimSynCaseError vimError
|
hi def link vimSynCaseError vimError
|
||||||
|
hi def link vimSynFoldMethodError vimError
|
||||||
hi def link vimBufnrWarn vimWarn
|
hi def link vimBufnrWarn vimWarn
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -989,6 +997,8 @@ if !exists("skip_vim_syntax_inits")
|
|||||||
hi def link vimSyncNone Type
|
hi def link vimSyncNone Type
|
||||||
hi def link vimSynContains vimSynOption
|
hi def link vimSynContains vimSynOption
|
||||||
hi def link vimSynError Error
|
hi def link vimSynError Error
|
||||||
|
hi def link vimSynFoldMethodError Error
|
||||||
|
hi def link vimSynFoldMethod Type
|
||||||
hi def link vimSynKeyContainedin vimSynContains
|
hi def link vimSynKeyContainedin vimSynContains
|
||||||
hi def link vimSynKeyOpt vimSynOption
|
hi def link vimSynKeyOpt vimSynOption
|
||||||
hi def link vimSynMtchGrp vimSynOption
|
hi def link vimSynMtchGrp vimSynOption
|
||||||
|
Loading…
Reference in New Issue
Block a user