mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:4335fcf: runtime(kconfig): updated ftplugin and syntax script
4335fcfed1
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
f50f86b9ff
commit
855a2a75e6
@ -1745,6 +1745,16 @@ To disable numbers having their own color add the following to your vimrc: >
|
|||||||
If you want quotes to have different highlighting than strings >
|
If you want quotes to have different highlighting than strings >
|
||||||
let g:jq_quote_highlight = 1
|
let g:jq_quote_highlight = 1
|
||||||
|
|
||||||
|
KCONFIG *ft-kconfig-syntax*
|
||||||
|
|
||||||
|
Kconfig syntax highlighting language. For syntax syncing, you can configure
|
||||||
|
the following variable (default: 50): >
|
||||||
|
|
||||||
|
let kconfig_minlines = 50
|
||||||
|
|
||||||
|
To configure a bit more (heavier) highlighting, set the following variable: >
|
||||||
|
|
||||||
|
let kconfig_syntax_heavy = 1
|
||||||
|
|
||||||
LACE *lace.vim* *ft-lace-syntax*
|
LACE *lace.vim* *ft-lace-syntax*
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Maintainer: Christian Brabandt <cb@256bit.org>
|
" Maintainer: Christian Brabandt <cb@256bit.org>
|
||||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2024-04-12
|
" Latest Revision: 2025 Jan 20
|
||||||
" License: Vim (see :h license)
|
" License: Vim (see :h license)
|
||||||
" Repository: https://github.com/chrisbra/vim-kconfig
|
" Repository: https://github.com/chrisbra/vim-kconfig
|
||||||
|
|
||||||
@ -19,4 +19,5 @@ setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
|
|||||||
" For matchit.vim
|
" For matchit.vim
|
||||||
if exists("loaded_matchit")
|
if exists("loaded_matchit")
|
||||||
let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>'
|
let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>'
|
||||||
|
let b:undo_ftplugin .= "| unlet! b:match_words"
|
||||||
endif
|
endif
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Maintainer: Christian Brabandt <cb@256bit.org>
|
" Maintainer: Christian Brabandt <cb@256bit.org>
|
||||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2024-07-19
|
" Latest Revision: 2025 Jan 20
|
||||||
" License: Vim (see :h license)
|
" License: Vim (see :h license)
|
||||||
" Repository: https://github.com/chrisbra/vim-kconfig
|
" Repository: https://github.com/chrisbra/vim-kconfig
|
||||||
|
|
||||||
@ -12,57 +12,59 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
exe "syn sync minlines=" . get(g:, 'kconfig_minlines', 50)
|
||||||
|
|
||||||
if exists("g:kconfig_syntax_heavy")
|
if exists("g:kconfig_syntax_heavy")
|
||||||
|
|
||||||
syn match kconfigBegin '^' nextgroup=kconfigKeyword
|
syn match kconfigBegin '^' nextgroup=kconfigKeyword
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn keyword kconfigTodo contained TODO FIXME XXX NOTE
|
syn keyword kconfigTodo contained TODO FIXME XXX NOTE
|
||||||
|
|
||||||
syn match kconfigComment display '#.*$' contains=kconfigTodo
|
syn match kconfigComment display '#.*$' contains=kconfigTodo
|
||||||
|
|
||||||
syn keyword kconfigKeyword config nextgroup=kconfigSymbol
|
syn keyword kconfigKeyword config nextgroup=kconfigSymbol
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn keyword kconfigKeyword menuconfig nextgroup=kconfigSymbol
|
syn keyword kconfigKeyword menuconfig nextgroup=kconfigSymbol
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn keyword kconfigKeyword comment menu mainmenu
|
syn keyword kconfigKeyword comment menu mainmenu
|
||||||
\ nextgroup=kconfigKeywordPrompt
|
\ nextgroup=kconfigKeywordPrompt
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn keyword kconfigKeyword choice
|
syn keyword kconfigKeyword choice
|
||||||
\ nextgroup=@kconfigConfigOptions
|
\ nextgroup=@kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn keyword kconfigKeyword endmenu endchoice
|
syn keyword kconfigKeyword endmenu endchoice
|
||||||
|
|
||||||
syn keyword kconfigPreProc source
|
syn keyword kconfigPreProc source
|
||||||
\ nextgroup=kconfigPath
|
\ nextgroup=kconfigPath
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
" TODO: This is a hack. The who .*Expr stuff should really be generated so
|
" TODO: This is a hack. The who .*Expr stuff should really be generated so
|
||||||
" that we can reuse it for various nextgroups.
|
" that we can reuse it for various nextgroups.
|
||||||
syn keyword kconfigConditional if endif
|
syn keyword kconfigConditional if endif
|
||||||
\ nextgroup=@kconfigConfigOptionIfExpr
|
\ nextgroup=@kconfigConfigOptionIfExpr
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigKeywordPrompt '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigKeywordPrompt '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptions
|
\ nextgroup=@kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigPath '"[^"\\]*\%(\\.[^"\\]*\)*"\|\S\+'
|
syn match kconfigPath '"[^"\\]*\%(\\.[^"\\]*\)*"\|\S\+'
|
||||||
\ contained
|
\ contained
|
||||||
|
|
||||||
syn match kconfigSymbol '\<\k\+\>'
|
syn match kconfigSymbol '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptions
|
\ nextgroup=@kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
" FIXME: There is – probably – no reason to cluster these instead of just
|
" FIXME: There is – probably – no reason to cluster these instead of just
|
||||||
" defining them in the same group.
|
" defining them in the same group.
|
||||||
syn cluster kconfigConfigOptions contains=kconfigTypeDefinition,
|
syn cluster kconfigConfigOptions contains=kconfigTypeDefinition,
|
||||||
\ kconfigInputPrompt,
|
\ kconfigInputPrompt,
|
||||||
\ kconfigDefaultValue,
|
\ kconfigDefaultValue,
|
||||||
\ kconfigDependencies,
|
\ kconfigDependencies,
|
||||||
@ -72,116 +74,116 @@ syn cluster kconfigConfigOptions contains=kconfigTypeDefinition,
|
|||||||
\ kconfigDefBool,
|
\ kconfigDefBool,
|
||||||
\ kconfigOptional
|
\ kconfigOptional
|
||||||
|
|
||||||
syn keyword kconfigTypeDefinition bool boolean tristate string hex int
|
syn keyword kconfigTypeDefinition bool boolean tristate string hex int
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigTypeDefPrompt,
|
\ nextgroup=kconfigTypeDefPrompt,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigTypeDefPrompt '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigTypeDefPrompt '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigTypeDefPrompt "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigTypeDefPrompt "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn keyword kconfigInputPrompt prompt
|
syn keyword kconfigInputPrompt prompt
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigPromptPrompt
|
\ nextgroup=kconfigPromptPrompt
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigPromptPrompt '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigPromptPrompt '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigPromptPrompt "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigPromptPrompt "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn keyword kconfigDefaultValue default
|
syn keyword kconfigDefaultValue default
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionExpr
|
\ nextgroup=@kconfigConfigOptionExpr
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigDependencies 'depends on\|requires'
|
syn match kconfigDependencies 'depends on\|requires'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionIfExpr
|
\ nextgroup=@kconfigConfigOptionIfExpr
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn keyword kconfigReverseDependencies select
|
syn keyword kconfigReverseDependencies select
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigRevDepSymbol
|
\ nextgroup=@kconfigRevDepSymbol
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn cluster kconfigRevDepSymbol contains=kconfigRevDepCSymbol,
|
syn cluster kconfigRevDepSymbol contains=kconfigRevDepCSymbol,
|
||||||
\ kconfigRevDepNCSymbol
|
\ kconfigRevDepNCSymbol
|
||||||
|
|
||||||
syn match kconfigRevDepCSymbol '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigRevDepCSymbol '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigRevDepCSymbol "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigRevDepCSymbol "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigRevDepNCSymbol '\<\k\+\>'
|
syn match kconfigRevDepNCSymbol '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn keyword kconfigNumericalRanges range
|
syn keyword kconfigNumericalRanges range
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigRangeSymbol
|
\ nextgroup=@kconfigRangeSymbol
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn cluster kconfigRangeSymbol contains=kconfigRangeCSymbol,
|
syn cluster kconfigRangeSymbol contains=kconfigRangeCSymbol,
|
||||||
\ kconfigRangeNCSymbol
|
\ kconfigRangeNCSymbol
|
||||||
|
|
||||||
syn match kconfigRangeCSymbol '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigRangeCSymbol '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigRangeSymbol2
|
\ nextgroup=@kconfigRangeSymbol2
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigRangeCSymbol "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigRangeCSymbol "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigRangeSymbol2
|
\ nextgroup=@kconfigRangeSymbol2
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigRangeNCSymbol '\<\k\+\>'
|
syn match kconfigRangeNCSymbol '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigRangeSymbol2
|
\ nextgroup=@kconfigRangeSymbol2
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn cluster kconfigRangeSymbol2 contains=kconfigRangeCSymbol2,
|
syn cluster kconfigRangeSymbol2 contains=kconfigRangeCSymbol2,
|
||||||
\ kconfigRangeNCSymbol2
|
\ kconfigRangeNCSymbol2
|
||||||
|
|
||||||
syn match kconfigRangeCSymbol2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigRangeCSymbol2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigRangeNCSymbol2 '\<\k\+\>'
|
syn match kconfigRangeNCSymbol2 '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn region kconfigHelpText contained
|
syn region kconfigHelpText contained
|
||||||
\ matchgroup=kconfigConfigOption
|
\ matchgroup=kconfigConfigOption
|
||||||
\ start='\%(help\|---help---\)\ze\s*\n\z(\s\+\)'
|
\ start='\%(help\|---help---\)\ze\s*\n\z(\s\+\)'
|
||||||
\ skip='^$'
|
\ skip='^$'
|
||||||
@ -189,53 +191,53 @@ syn region kconfigHelpText contained
|
|||||||
\ nextgroup=@kconfigConfigOptions
|
\ nextgroup=@kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
" XXX: Undocumented
|
" XXX: Undocumented
|
||||||
syn keyword kconfigDefBool def_bool
|
syn keyword kconfigDefBool def_bool
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigDefBoolSymbol
|
\ nextgroup=@kconfigDefBoolSymbol
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn cluster kconfigDefBoolSymbol contains=kconfigDefBoolCSymbol,
|
syn cluster kconfigDefBoolSymbol contains=kconfigDefBoolCSymbol,
|
||||||
\ kconfigDefBoolNCSymbol
|
\ kconfigDefBoolNCSymbol
|
||||||
|
|
||||||
syn match kconfigDefBoolCSymbol '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigDefBoolCSymbol '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigDefBoolCSymbol "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigDefBoolCSymbol "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigDefBoolNCSymbol '\<\k\+\>'
|
syn match kconfigDefBoolNCSymbol '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
" XXX: This is actually only a valid option for “choice”, but treating it
|
" XXX: This is actually only a valid option for “choice”, but treating it
|
||||||
" specially would require a lot of extra groups.
|
" specially would require a lot of extra groups.
|
||||||
syn keyword kconfigOptional optional
|
syn keyword kconfigOptional optional
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptions
|
\ nextgroup=@kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn keyword kconfigConfigOptionIf if
|
syn keyword kconfigConfigOptionIf if
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionIfExpr
|
\ nextgroup=@kconfigConfigOptionIfExpr
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn cluster kconfigConfigOptionIfExpr contains=@kconfigConfOptIfExprSym,
|
syn cluster kconfigConfigOptionIfExpr contains=@kconfigConfOptIfExprSym,
|
||||||
\ kconfigConfOptIfExprNeg,
|
\ kconfigConfOptIfExprNeg,
|
||||||
\ kconfigConfOptIfExprGroup
|
\ kconfigConfOptIfExprGroup
|
||||||
|
|
||||||
syn cluster kconfigConfOptIfExprSym contains=kconfigConfOptIfExprCSym,
|
syn cluster kconfigConfOptIfExprSym contains=kconfigConfOptIfExprCSym,
|
||||||
\ kconfigConfOptIfExprNCSym
|
\ kconfigConfOptIfExprNCSym
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigConfOptIfExprCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptions,
|
\ nextgroup=@kconfigConfigOptions,
|
||||||
\ kconfigConfOptIfExprAnd,
|
\ kconfigConfOptIfExprAnd,
|
||||||
@ -244,7 +246,7 @@ syn match kconfigConfOptIfExprCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
|||||||
\ kconfigConfOptIfExprNEq
|
\ kconfigConfOptIfExprNEq
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigConfOptIfExprCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptions,
|
\ nextgroup=@kconfigConfigOptions,
|
||||||
\ kconfigConfOptIfExprAnd,
|
\ kconfigConfOptIfExprAnd,
|
||||||
@ -253,7 +255,7 @@ syn match kconfigConfOptIfExprCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
|||||||
\ kconfigConfOptIfExprNEq
|
\ kconfigConfOptIfExprNEq
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprNCSym '\<\k\+\>'
|
syn match kconfigConfOptIfExprNCSym '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptions,
|
\ nextgroup=@kconfigConfigOptions,
|
||||||
\ kconfigConfOptIfExprAnd,
|
\ kconfigConfOptIfExprAnd,
|
||||||
@ -262,64 +264,64 @@ syn match kconfigConfOptIfExprNCSym '\<\k\+\>'
|
|||||||
\ kconfigConfOptIfExprNEq
|
\ kconfigConfOptIfExprNEq
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn cluster kconfigConfOptIfExprSym2 contains=kconfigConfOptIfExprCSym2,
|
syn cluster kconfigConfOptIfExprSym2 contains=kconfigConfOptIfExprCSym2,
|
||||||
\ kconfigConfOptIfExprNCSym2
|
\ kconfigConfOptIfExprNCSym2
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprEq '='
|
syn match kconfigConfOptIfExprEq '='
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfOptIfExprSym2
|
\ nextgroup=@kconfigConfOptIfExprSym2
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprNEq '!='
|
syn match kconfigConfOptIfExprNEq '!='
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfOptIfExprSym2
|
\ nextgroup=@kconfigConfOptIfExprSym2
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigConfOptIfExprCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptions,
|
\ nextgroup=@kconfigConfigOptions,
|
||||||
\ kconfigConfOptIfExprAnd,
|
\ kconfigConfOptIfExprAnd,
|
||||||
\ kconfigConfOptIfExprOr
|
\ kconfigConfOptIfExprOr
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprNCSym2 '\<\k\+\>'
|
syn match kconfigConfOptIfExprNCSym2 '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptions,
|
\ nextgroup=@kconfigConfigOptions,
|
||||||
\ kconfigConfOptIfExprAnd,
|
\ kconfigConfOptIfExprAnd,
|
||||||
\ kconfigConfOptIfExprOr
|
\ kconfigConfOptIfExprOr
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprNeg '!'
|
syn match kconfigConfOptIfExprNeg '!'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionIfExpr
|
\ nextgroup=@kconfigConfigOptionIfExpr
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprAnd '&&'
|
syn match kconfigConfOptIfExprAnd '&&'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionIfExpr
|
\ nextgroup=@kconfigConfigOptionIfExpr
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprOr '||'
|
syn match kconfigConfOptIfExprOr '||'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionIfExpr
|
\ nextgroup=@kconfigConfigOptionIfExpr
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprGroup '('
|
syn match kconfigConfOptIfExprGroup '('
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionIfGExp
|
\ nextgroup=@kconfigConfigOptionIfGExp
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
" TODO: hm, this kind of recursion doesn't work right. We need another set of
|
" TODO: hm, this kind of recursion doesn't work right. We need another set of
|
||||||
" expressions that have kconfigConfigOPtionIfGExp as nextgroup and a matcher
|
" expressions that have kconfigConfigOPtionIfGExp as nextgroup and a matcher
|
||||||
" for '(' that sets it all off.
|
" for '(' that sets it all off.
|
||||||
syn cluster kconfigConfigOptionIfGExp contains=@kconfigConfOptIfGExpSym,
|
syn cluster kconfigConfigOptionIfGExp contains=@kconfigConfOptIfGExpSym,
|
||||||
\ kconfigConfOptIfGExpNeg,
|
\ kconfigConfOptIfGExpNeg,
|
||||||
\ kconfigConfOptIfExprGroup
|
\ kconfigConfOptIfExprGroup
|
||||||
|
|
||||||
syn cluster kconfigConfOptIfGExpSym contains=kconfigConfOptIfGExpCSym,
|
syn cluster kconfigConfOptIfGExpSym contains=kconfigConfOptIfGExpCSym,
|
||||||
\ kconfigConfOptIfGExpNCSym
|
\ kconfigConfOptIfGExpNCSym
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigConfOptIfGExpCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigIf,
|
\ nextgroup=@kconfigConfigIf,
|
||||||
\ kconfigConfOptIfGExpAnd,
|
\ kconfigConfOptIfGExpAnd,
|
||||||
@ -328,7 +330,7 @@ syn match kconfigConfOptIfGExpCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
|||||||
\ kconfigConfOptIfGExpNEq
|
\ kconfigConfOptIfGExpNEq
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigConfOptIfGExpCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigIf,
|
\ nextgroup=@kconfigConfigIf,
|
||||||
\ kconfigConfOptIfGExpAnd,
|
\ kconfigConfOptIfGExpAnd,
|
||||||
@ -337,7 +339,7 @@ syn match kconfigConfOptIfGExpCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
|||||||
\ kconfigConfOptIfGExpNEq
|
\ kconfigConfOptIfGExpNEq
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpNCSym '\<\k\+\>'
|
syn match kconfigConfOptIfGExpNCSym '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfOptIfExprGrpE,
|
\ nextgroup=kconfigConfOptIfExprGrpE,
|
||||||
\ kconfigConfOptIfGExpAnd,
|
\ kconfigConfOptIfGExpAnd,
|
||||||
@ -346,56 +348,56 @@ syn match kconfigConfOptIfGExpNCSym '\<\k\+\>'
|
|||||||
\ kconfigConfOptIfGExpNEq
|
\ kconfigConfOptIfGExpNEq
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn cluster kconfigConfOptIfGExpSym2 contains=kconfigConfOptIfGExpCSym2,
|
syn cluster kconfigConfOptIfGExpSym2 contains=kconfigConfOptIfGExpCSym2,
|
||||||
\ kconfigConfOptIfGExpNCSym2
|
\ kconfigConfOptIfGExpNCSym2
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpEq '='
|
syn match kconfigConfOptIfGExpEq '='
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfOptIfGExpSym2
|
\ nextgroup=@kconfigConfOptIfGExpSym2
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpNEq '!='
|
syn match kconfigConfOptIfGExpNEq '!='
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfOptIfGExpSym2
|
\ nextgroup=@kconfigConfOptIfGExpSym2
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpCSym2 '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigConfOptIfGExpCSym2 '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfOptIfExprGrpE,
|
\ nextgroup=kconfigConfOptIfExprGrpE,
|
||||||
\ kconfigConfOptIfGExpAnd,
|
\ kconfigConfOptIfGExpAnd,
|
||||||
\ kconfigConfOptIfGExpOr
|
\ kconfigConfOptIfGExpOr
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigConfOptIfGExpCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfOptIfExprGrpE,
|
\ nextgroup=kconfigConfOptIfExprGrpE,
|
||||||
\ kconfigConfOptIfGExpAnd,
|
\ kconfigConfOptIfGExpAnd,
|
||||||
\ kconfigConfOptIfGExpOr
|
\ kconfigConfOptIfGExpOr
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpNCSym2 '\<\k\+\>'
|
syn match kconfigConfOptIfGExpNCSym2 '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfOptIfExprGrpE,
|
\ nextgroup=kconfigConfOptIfExprGrpE,
|
||||||
\ kconfigConfOptIfGExpAnd,
|
\ kconfigConfOptIfGExpAnd,
|
||||||
\ kconfigConfOptIfGExpOr
|
\ kconfigConfOptIfGExpOr
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpNeg '!'
|
syn match kconfigConfOptIfGExpNeg '!'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionIfGExp
|
\ nextgroup=@kconfigConfigOptionIfGExp
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpAnd '&&'
|
syn match kconfigConfOptIfGExpAnd '&&'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionIfGExp
|
\ nextgroup=@kconfigConfigOptionIfGExp
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptIfGExpOr '||'
|
syn match kconfigConfOptIfGExpOr '||'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionIfGExp
|
\ nextgroup=@kconfigConfigOptionIfGExp
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptIfExprGrpE ')'
|
syn match kconfigConfOptIfExprGrpE ')'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptions,
|
\ nextgroup=@kconfigConfigOptions,
|
||||||
\ kconfigConfOptIfExprAnd,
|
\ kconfigConfOptIfExprAnd,
|
||||||
@ -403,14 +405,14 @@ syn match kconfigConfOptIfExprGrpE ')'
|
|||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
|
|
||||||
syn cluster kconfigConfigOptionExpr contains=@kconfigConfOptExprSym,
|
syn cluster kconfigConfigOptionExpr contains=@kconfigConfOptExprSym,
|
||||||
\ kconfigConfOptExprNeg,
|
\ kconfigConfOptExprNeg,
|
||||||
\ kconfigConfOptExprGroup
|
\ kconfigConfOptExprGroup
|
||||||
|
|
||||||
syn cluster kconfigConfOptExprSym contains=kconfigConfOptExprCSym,
|
syn cluster kconfigConfOptExprSym contains=kconfigConfOptExprCSym,
|
||||||
\ kconfigConfOptExprNCSym
|
\ kconfigConfOptExprNCSym
|
||||||
|
|
||||||
syn match kconfigConfOptExprCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigConfOptExprCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ kconfigConfOptExprAnd,
|
\ kconfigConfOptExprAnd,
|
||||||
@ -420,7 +422,7 @@ syn match kconfigConfOptExprCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
|||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptExprCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigConfOptExprCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ kconfigConfOptExprAnd,
|
\ kconfigConfOptExprAnd,
|
||||||
@ -430,7 +432,7 @@ syn match kconfigConfOptExprCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
|||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptExprNCSym '\<\k\+\>'
|
syn match kconfigConfOptExprNCSym '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ kconfigConfOptExprAnd,
|
\ kconfigConfOptExprAnd,
|
||||||
@ -440,20 +442,20 @@ syn match kconfigConfOptExprNCSym '\<\k\+\>'
|
|||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn cluster kconfigConfOptExprSym2 contains=kconfigConfOptExprCSym2,
|
syn cluster kconfigConfOptExprSym2 contains=kconfigConfOptExprCSym2,
|
||||||
\ kconfigConfOptExprNCSym2
|
\ kconfigConfOptExprNCSym2
|
||||||
|
|
||||||
syn match kconfigConfOptExprEq '='
|
syn match kconfigConfOptExprEq '='
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfOptExprSym2
|
\ nextgroup=@kconfigConfOptExprSym2
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptExprNEq '!='
|
syn match kconfigConfOptExprNEq '!='
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfOptExprSym2
|
\ nextgroup=@kconfigConfOptExprSym2
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptExprCSym2 '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigConfOptExprCSym2 '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ kconfigConfOptExprAnd,
|
\ kconfigConfOptExprAnd,
|
||||||
@ -461,7 +463,7 @@ syn match kconfigConfOptExprCSym2 '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
|||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptExprCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigConfOptExprCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ kconfigConfOptExprAnd,
|
\ kconfigConfOptExprAnd,
|
||||||
@ -469,7 +471,7 @@ syn match kconfigConfOptExprCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
|||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptExprNCSym2 '\<\k\+\>'
|
syn match kconfigConfOptExprNCSym2 '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ kconfigConfOptExprAnd,
|
\ kconfigConfOptExprAnd,
|
||||||
@ -477,34 +479,34 @@ syn match kconfigConfOptExprNCSym2 '\<\k\+\>'
|
|||||||
\ @kconfigConfigOptions
|
\ @kconfigConfigOptions
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptExprNeg '!'
|
syn match kconfigConfOptExprNeg '!'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionExpr
|
\ nextgroup=@kconfigConfigOptionExpr
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptExprAnd '&&'
|
syn match kconfigConfOptExprAnd '&&'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionExpr
|
\ nextgroup=@kconfigConfigOptionExpr
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptExprOr '||'
|
syn match kconfigConfOptExprOr '||'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionExpr
|
\ nextgroup=@kconfigConfigOptionExpr
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptExprGroup '('
|
syn match kconfigConfOptExprGroup '('
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionGExp
|
\ nextgroup=@kconfigConfigOptionGExp
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn cluster kconfigConfigOptionGExp contains=@kconfigConfOptGExpSym,
|
syn cluster kconfigConfigOptionGExp contains=@kconfigConfOptGExpSym,
|
||||||
\ kconfigConfOptGExpNeg,
|
\ kconfigConfOptGExpNeg,
|
||||||
\ kconfigConfOptGExpGroup
|
\ kconfigConfOptGExpGroup
|
||||||
|
|
||||||
syn cluster kconfigConfOptGExpSym contains=kconfigConfOptGExpCSym,
|
syn cluster kconfigConfOptGExpSym contains=kconfigConfOptGExpCSym,
|
||||||
\ kconfigConfOptGExpNCSym
|
\ kconfigConfOptGExpNCSym
|
||||||
|
|
||||||
syn match kconfigConfOptGExpCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigConfOptGExpCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfOptExprGrpE,
|
\ nextgroup=kconfigConfOptExprGrpE,
|
||||||
\ kconfigConfOptGExpAnd,
|
\ kconfigConfOptGExpAnd,
|
||||||
@ -513,7 +515,7 @@ syn match kconfigConfOptGExpCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
|||||||
\ kconfigConfOptGExpNEq
|
\ kconfigConfOptGExpNEq
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptGExpCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigConfOptGExpCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfOptExprGrpE,
|
\ nextgroup=kconfigConfOptExprGrpE,
|
||||||
\ kconfigConfOptGExpAnd,
|
\ kconfigConfOptGExpAnd,
|
||||||
@ -522,7 +524,7 @@ syn match kconfigConfOptGExpCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
|||||||
\ kconfigConfOptGExpNEq
|
\ kconfigConfOptGExpNEq
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptGExpNCSym '\<\k\+\>'
|
syn match kconfigConfOptGExpNCSym '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfOptExprGrpE,
|
\ nextgroup=kconfigConfOptExprGrpE,
|
||||||
\ kconfigConfOptGExpAnd,
|
\ kconfigConfOptGExpAnd,
|
||||||
@ -531,203 +533,201 @@ syn match kconfigConfOptGExpNCSym '\<\k\+\>'
|
|||||||
\ kconfigConfOptGExpNEq
|
\ kconfigConfOptGExpNEq
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn cluster kconfigConfOptGExpSym2 contains=kconfigConfOptGExpCSym2,
|
syn cluster kconfigConfOptGExpSym2 contains=kconfigConfOptGExpCSym2,
|
||||||
\ kconfigConfOptGExpNCSym2
|
\ kconfigConfOptGExpNCSym2
|
||||||
|
|
||||||
syn match kconfigConfOptGExpEq '='
|
syn match kconfigConfOptGExpEq '='
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfOptGExpSym2
|
\ nextgroup=@kconfigConfOptGExpSym2
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptGExpNEq '!='
|
syn match kconfigConfOptGExpNEq '!='
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfOptGExpSym2
|
\ nextgroup=@kconfigConfOptGExpSym2
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptGExpCSym2 '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
syn match kconfigConfOptGExpCSym2 '"[^"\\]*\%(\\.[^"\\]*\)*"'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfOptExprGrpE,
|
\ nextgroup=kconfigConfOptExprGrpE,
|
||||||
\ kconfigConfOptGExpAnd,
|
\ kconfigConfOptGExpAnd,
|
||||||
\ kconfigConfOptGExpOr
|
\ kconfigConfOptGExpOr
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptGExpCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
syn match kconfigConfOptGExpCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfOptExprGrpE,
|
\ nextgroup=kconfigConfOptExprGrpE,
|
||||||
\ kconfigConfOptGExpAnd,
|
\ kconfigConfOptGExpAnd,
|
||||||
\ kconfigConfOptGExpOr
|
\ kconfigConfOptGExpOr
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptGExpNCSym2 '\<\k\+\>'
|
syn match kconfigConfOptGExpNCSym2 '\<\k\+\>'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfOptExprGrpE,
|
\ nextgroup=kconfigConfOptExprGrpE,
|
||||||
\ kconfigConfOptGExpAnd,
|
\ kconfigConfOptGExpAnd,
|
||||||
\ kconfigConfOptGExpOr
|
\ kconfigConfOptGExpOr
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn match kconfigConfOptGExpNeg '!'
|
syn match kconfigConfOptGExpNeg '!'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionGExp
|
\ nextgroup=@kconfigConfigOptionGExp
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptGExpAnd '&&'
|
syn match kconfigConfOptGExpAnd '&&'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionGExp
|
\ nextgroup=@kconfigConfigOptionGExp
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptGExpOr '||'
|
syn match kconfigConfOptGExpOr '||'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=@kconfigConfigOptionGExp
|
\ nextgroup=@kconfigConfigOptionGExp
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn match kconfigConfOptExprGrpE ')'
|
syn match kconfigConfOptExprGrpE ')'
|
||||||
\ contained
|
\ contained
|
||||||
\ nextgroup=kconfigConfigOptionIf,
|
\ nextgroup=kconfigConfigOptionIf,
|
||||||
\ kconfigConfOptExprAnd,
|
\ kconfigConfOptExprAnd,
|
||||||
\ kconfigConfOptExprOr
|
\ kconfigConfOptExprOr
|
||||||
\ skipwhite skipnl
|
\ skipwhite skipnl
|
||||||
|
|
||||||
syn sync minlines=50
|
hi def link kconfigTodo Todo
|
||||||
|
hi def link kconfigComment Comment
|
||||||
hi def link kconfigTodo Todo
|
hi def link kconfigKeyword Keyword
|
||||||
hi def link kconfigComment Comment
|
hi def link kconfigPreProc PreProc
|
||||||
hi def link kconfigKeyword Keyword
|
hi def link kconfigConditional Conditional
|
||||||
hi def link kconfigPreProc PreProc
|
hi def link kconfigPrompt String
|
||||||
hi def link kconfigConditional Conditional
|
hi def link kconfigKeywordPrompt kconfigPrompt
|
||||||
hi def link kconfigPrompt String
|
hi def link kconfigPath String
|
||||||
hi def link kconfigKeywordPrompt kconfigPrompt
|
hi def link kconfigSymbol String
|
||||||
hi def link kconfigPath String
|
hi def link kconfigConstantSymbol Constant
|
||||||
hi def link kconfigSymbol String
|
hi def link kconfigConfigOption Type
|
||||||
hi def link kconfigConstantSymbol Constant
|
hi def link kconfigTypeDefinition kconfigConfigOption
|
||||||
hi def link kconfigConfigOption Type
|
hi def link kconfigTypeDefPrompt kconfigPrompt
|
||||||
hi def link kconfigTypeDefinition kconfigConfigOption
|
hi def link kconfigInputPrompt kconfigConfigOption
|
||||||
hi def link kconfigTypeDefPrompt kconfigPrompt
|
hi def link kconfigPromptPrompt kconfigPrompt
|
||||||
hi def link kconfigInputPrompt kconfigConfigOption
|
hi def link kconfigDefaultValue kconfigConfigOption
|
||||||
hi def link kconfigPromptPrompt kconfigPrompt
|
hi def link kconfigDependencies kconfigConfigOption
|
||||||
hi def link kconfigDefaultValue kconfigConfigOption
|
hi def link kconfigReverseDependencies kconfigConfigOption
|
||||||
hi def link kconfigDependencies kconfigConfigOption
|
hi def link kconfigRevDepCSymbol kconfigConstantSymbol
|
||||||
hi def link kconfigReverseDependencies kconfigConfigOption
|
hi def link kconfigRevDepNCSymbol kconfigSymbol
|
||||||
hi def link kconfigRevDepCSymbol kconfigConstantSymbol
|
hi def link kconfigNumericalRanges kconfigConfigOption
|
||||||
hi def link kconfigRevDepNCSymbol kconfigSymbol
|
hi def link kconfigRangeCSymbol kconfigConstantSymbol
|
||||||
hi def link kconfigNumericalRanges kconfigConfigOption
|
hi def link kconfigRangeNCSymbol kconfigSymbol
|
||||||
hi def link kconfigRangeCSymbol kconfigConstantSymbol
|
hi def link kconfigRangeCSymbol2 kconfigConstantSymbol
|
||||||
hi def link kconfigRangeNCSymbol kconfigSymbol
|
hi def link kconfigRangeNCSymbol2 kconfigSymbol
|
||||||
hi def link kconfigRangeCSymbol2 kconfigConstantSymbol
|
hi def link kconfigHelpText Normal
|
||||||
hi def link kconfigRangeNCSymbol2 kconfigSymbol
|
hi def link kconfigDefBool kconfigConfigOption
|
||||||
hi def link kconfigHelpText Normal
|
hi def link kconfigDefBoolCSymbol kconfigConstantSymbol
|
||||||
hi def link kconfigDefBool kconfigConfigOption
|
hi def link kconfigDefBoolNCSymbol kconfigSymbol
|
||||||
hi def link kconfigDefBoolCSymbol kconfigConstantSymbol
|
hi def link kconfigOptional kconfigConfigOption
|
||||||
hi def link kconfigDefBoolNCSymbol kconfigSymbol
|
hi def link kconfigConfigOptionIf Conditional
|
||||||
hi def link kconfigOptional kconfigConfigOption
|
hi def link kconfigConfOptIfExprCSym kconfigConstantSymbol
|
||||||
hi def link kconfigConfigOptionIf Conditional
|
hi def link kconfigConfOptIfExprNCSym kconfigSymbol
|
||||||
hi def link kconfigConfOptIfExprCSym kconfigConstantSymbol
|
hi def link kconfigOperator Operator
|
||||||
hi def link kconfigConfOptIfExprNCSym kconfigSymbol
|
hi def link kconfigConfOptIfExprEq kconfigOperator
|
||||||
hi def link kconfigOperator Operator
|
hi def link kconfigConfOptIfExprNEq kconfigOperator
|
||||||
hi def link kconfigConfOptIfExprEq kconfigOperator
|
hi def link kconfigConfOptIfExprCSym2 kconfigConstantSymbol
|
||||||
hi def link kconfigConfOptIfExprNEq kconfigOperator
|
hi def link kconfigConfOptIfExprNCSym2 kconfigSymbol
|
||||||
hi def link kconfigConfOptIfExprCSym2 kconfigConstantSymbol
|
hi def link kconfigConfOptIfExprNeg kconfigOperator
|
||||||
hi def link kconfigConfOptIfExprNCSym2 kconfigSymbol
|
hi def link kconfigConfOptIfExprAnd kconfigOperator
|
||||||
hi def link kconfigConfOptIfExprNeg kconfigOperator
|
hi def link kconfigConfOptIfExprOr kconfigOperator
|
||||||
hi def link kconfigConfOptIfExprAnd kconfigOperator
|
hi def link kconfigDelimiter Delimiter
|
||||||
hi def link kconfigConfOptIfExprOr kconfigOperator
|
hi def link kconfigConfOptIfExprGroup kconfigDelimiter
|
||||||
hi def link kconfigDelimiter Delimiter
|
hi def link kconfigConfOptIfGExpCSym kconfigConstantSymbol
|
||||||
hi def link kconfigConfOptIfExprGroup kconfigDelimiter
|
hi def link kconfigConfOptIfGExpNCSym kconfigSymbol
|
||||||
hi def link kconfigConfOptIfGExpCSym kconfigConstantSymbol
|
hi def link kconfigConfOptIfGExpEq kconfigOperator
|
||||||
hi def link kconfigConfOptIfGExpNCSym kconfigSymbol
|
hi def link kconfigConfOptIfGExpNEq kconfigOperator
|
||||||
hi def link kconfigConfOptIfGExpEq kconfigOperator
|
hi def link kconfigConfOptIfGExpCSym2 kconfigConstantSymbol
|
||||||
hi def link kconfigConfOptIfGExpNEq kconfigOperator
|
hi def link kconfigConfOptIfGExpNCSym2 kconfigSymbol
|
||||||
hi def link kconfigConfOptIfGExpCSym2 kconfigConstantSymbol
|
hi def link kconfigConfOptIfGExpNeg kconfigOperator
|
||||||
hi def link kconfigConfOptIfGExpNCSym2 kconfigSymbol
|
hi def link kconfigConfOptIfGExpAnd kconfigOperator
|
||||||
hi def link kconfigConfOptIfGExpNeg kconfigOperator
|
hi def link kconfigConfOptIfGExpOr kconfigOperator
|
||||||
hi def link kconfigConfOptIfGExpAnd kconfigOperator
|
hi def link kconfigConfOptIfExprGrpE kconfigDelimiter
|
||||||
hi def link kconfigConfOptIfGExpOr kconfigOperator
|
hi def link kconfigConfOptExprCSym kconfigConstantSymbol
|
||||||
hi def link kconfigConfOptIfExprGrpE kconfigDelimiter
|
hi def link kconfigConfOptExprNCSym kconfigSymbol
|
||||||
hi def link kconfigConfOptExprCSym kconfigConstantSymbol
|
hi def link kconfigConfOptExprEq kconfigOperator
|
||||||
hi def link kconfigConfOptExprNCSym kconfigSymbol
|
hi def link kconfigConfOptExprNEq kconfigOperator
|
||||||
hi def link kconfigConfOptExprEq kconfigOperator
|
hi def link kconfigConfOptExprCSym2 kconfigConstantSymbol
|
||||||
hi def link kconfigConfOptExprNEq kconfigOperator
|
hi def link kconfigConfOptExprNCSym2 kconfigSymbol
|
||||||
hi def link kconfigConfOptExprCSym2 kconfigConstantSymbol
|
hi def link kconfigConfOptExprNeg kconfigOperator
|
||||||
hi def link kconfigConfOptExprNCSym2 kconfigSymbol
|
hi def link kconfigConfOptExprAnd kconfigOperator
|
||||||
hi def link kconfigConfOptExprNeg kconfigOperator
|
hi def link kconfigConfOptExprOr kconfigOperator
|
||||||
hi def link kconfigConfOptExprAnd kconfigOperator
|
hi def link kconfigConfOptExprGroup kconfigDelimiter
|
||||||
hi def link kconfigConfOptExprOr kconfigOperator
|
hi def link kconfigConfOptGExpCSym kconfigConstantSymbol
|
||||||
hi def link kconfigConfOptExprGroup kconfigDelimiter
|
hi def link kconfigConfOptGExpNCSym kconfigSymbol
|
||||||
hi def link kconfigConfOptGExpCSym kconfigConstantSymbol
|
hi def link kconfigConfOptGExpEq kconfigOperator
|
||||||
hi def link kconfigConfOptGExpNCSym kconfigSymbol
|
hi def link kconfigConfOptGExpNEq kconfigOperator
|
||||||
hi def link kconfigConfOptGExpEq kconfigOperator
|
hi def link kconfigConfOptGExpCSym2 kconfigConstantSymbol
|
||||||
hi def link kconfigConfOptGExpNEq kconfigOperator
|
hi def link kconfigConfOptGExpNCSym2 kconfigSymbol
|
||||||
hi def link kconfigConfOptGExpCSym2 kconfigConstantSymbol
|
hi def link kconfigConfOptGExpNeg kconfigOperator
|
||||||
hi def link kconfigConfOptGExpNCSym2 kconfigSymbol
|
hi def link kconfigConfOptGExpAnd kconfigOperator
|
||||||
hi def link kconfigConfOptGExpNeg kconfigOperator
|
hi def link kconfigConfOptGExpOr kconfigOperator
|
||||||
hi def link kconfigConfOptGExpAnd kconfigOperator
|
hi def link kconfigConfOptExprGrpE kconfigConfOptIfExprGroup
|
||||||
hi def link kconfigConfOptGExpOr kconfigOperator
|
|
||||||
hi def link kconfigConfOptExprGrpE kconfigConfOptIfExprGroup
|
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
syn keyword kconfigTodo contained TODO FIXME XXX NOTE
|
syn keyword kconfigTodo contained TODO FIXME XXX NOTE
|
||||||
|
|
||||||
syn match kconfigComment display '#.*$' contains=kconfigTodo
|
syn match kconfigComment display '#.*$' contains=kconfigTodo
|
||||||
|
|
||||||
syn keyword kconfigKeyword config menuconfig comment mainmenu
|
syn keyword kconfigKeyword config menuconfig comment mainmenu
|
||||||
|
|
||||||
syn keyword kconfigConditional menu endmenu choice endchoice if endif
|
syn keyword kconfigConditional menu endmenu choice endchoice if endif
|
||||||
|
|
||||||
syn keyword kconfigPreProc source
|
syn keyword kconfigPreProc source
|
||||||
\ nextgroup=kconfigPath
|
\ nextgroup=kconfigPath
|
||||||
\ skipwhite
|
\ skipwhite
|
||||||
|
|
||||||
syn keyword kconfigTriState y m n
|
syn keyword kconfigTriState y m n
|
||||||
|
|
||||||
syn match kconfigSpecialChar contained '\\.'
|
syn match kconfigSpecialChar contained '\\.'
|
||||||
syn match kconfigSpecialChar '\\$'
|
syn match kconfigSpecialChar '\\$'
|
||||||
|
|
||||||
syn region kconfigPath matchgroup=kconfigPath
|
syn region kconfigPath matchgroup=kconfigPath
|
||||||
\ start=+"+ skip=+\\\\\|\\\"+ end=+"+
|
\ start=+"+ skip=+\\\\\|\\\"+ end=+"+
|
||||||
\ contains=kconfigSpecialChar
|
\ contains=kconfigSpecialChar
|
||||||
|
|
||||||
syn region kconfigPath matchgroup=kconfigPath
|
syn region kconfigPath matchgroup=kconfigPath
|
||||||
\ start=+'+ skip=+\\\\\|\\\'+ end=+'+
|
\ start=+'+ skip=+\\\\\|\\\'+ end=+'+
|
||||||
\ contains=kconfigSpecialChar
|
\ contains=kconfigSpecialChar
|
||||||
|
|
||||||
syn match kconfigPath '\S\+'
|
syn match kconfigPath '\S\+'
|
||||||
\ contained
|
\ contained
|
||||||
|
|
||||||
syn region kconfigString matchgroup=kconfigString
|
syn region kconfigString matchgroup=kconfigString
|
||||||
\ start=+"+ skip=+\\\\\|\\\"+ end=+"+
|
\ start=+"+ skip=+\\\\\|\\\"+ end=+"+
|
||||||
\ contains=kconfigSpecialChar
|
\ contains=kconfigSpecialChar
|
||||||
|
|
||||||
syn region kconfigString matchgroup=kconfigString
|
syn region kconfigString matchgroup=kconfigString
|
||||||
\ start=+'+ skip=+\\\\\|\\\'+ end=+'+
|
\ start=+'+ skip=+\\\\\|\\\'+ end=+'+
|
||||||
\ contains=kconfigSpecialChar
|
\ contains=kconfigSpecialChar
|
||||||
|
|
||||||
syn keyword kconfigType bool boolean tristate string hex int
|
syn keyword kconfigType bool boolean tristate string hex int
|
||||||
|
|
||||||
syn keyword kconfigOption prompt default requires select range
|
syn keyword kconfigOption prompt default requires select range
|
||||||
\ optional
|
\ optional
|
||||||
syn match kconfigOption 'depends\%( on\)\='
|
syn match kconfigOption 'depends\%( on\)\='
|
||||||
|
|
||||||
syn keyword kconfigMacro def_bool def_tristate
|
syn keyword kconfigMacro def_bool def_tristate
|
||||||
|
|
||||||
syn region kconfigHelpText
|
syn region kconfigHelpText
|
||||||
\ matchgroup=kconfigOption
|
\ matchgroup=kconfigOption
|
||||||
\ start='\%(help\|---help---\)\ze\s*\n\z(\s\+\)'
|
\ start='\%(help\|---help---\)\ze\s*\n\z(\s\+\)'
|
||||||
\ skip='^$'
|
\ skip='^$'
|
||||||
\ end='^\z1\@!'
|
\ end='^\z1\@!'
|
||||||
|
|
||||||
hi def link kconfigTodo Todo
|
hi def link kconfigTodo Todo
|
||||||
hi def link kconfigComment Comment
|
hi def link kconfigComment Comment
|
||||||
hi def link kconfigKeyword Keyword
|
hi def link kconfigKeyword Keyword
|
||||||
hi def link kconfigConditional Conditional
|
hi def link kconfigConditional Conditional
|
||||||
hi def link kconfigPreProc PreProc
|
hi def link kconfigPreProc PreProc
|
||||||
hi def link kconfigTriState Boolean
|
hi def link kconfigTriState Boolean
|
||||||
hi def link kconfigSpecialChar SpecialChar
|
hi def link kconfigSpecialChar SpecialChar
|
||||||
hi def link kconfigPath String
|
hi def link kconfigPath String
|
||||||
hi def link kconfigString String
|
hi def link kconfigString String
|
||||||
hi def link kconfigType Type
|
hi def link kconfigType Type
|
||||||
hi def link kconfigOption Identifier
|
hi def link kconfigOption Identifier
|
||||||
hi def link kconfigHelpText Normal
|
hi def link kconfigHelpText Normal
|
||||||
hi def link kconfigmacro Macro
|
hi def link kconfigmacro Macro
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user