annotate runtime/syntax/kconfig.vim @ 20675:02f648f1c8fa v8.2.0891

patch 8.2.0891: clang warns for invalid conversion Commit: https://github.com/vim/vim/commit/cc836556d962058d8b8fbc45c400b7e9d643976a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 3 10:04:49 2020 +0200 patch 8.2.0891: clang warns for invalid conversion Problem: Clang warns for invalid conversion. Solution: Use zero instead of INVALCOLOR.
author Bram Moolenaar <Bram@vim.org>
date Wed, 03 Jun 2020 10:15:03 +0200
parents 0303182665d5
children 9faa0b5ef59e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
1 " Vim syntax file
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
2 " Maintainer: Christian Brabandt <cb@256bit.org>
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
4 " Latest Revision: 2015-05-29
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
5 " License: Vim (see :h license)
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
6 " Repository: https://github.com/chrisbra/vim-kconfig
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
7
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
8 if exists("b:current_syntax")
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
9 finish
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
10 endif
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
11
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
12 let s:cpo_save = &cpo
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
13 set cpo&vim
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
14
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
15 if exists("g:kconfig_syntax_heavy")
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
16
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
17 syn match kconfigBegin '^' nextgroup=kconfigKeyword
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
18 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
19
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
20 syn keyword kconfigTodo contained TODO FIXME XXX NOTE
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
21
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
22 syn match kconfigComment display '#.*$' contains=kconfigTodo
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
23
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
24 syn keyword kconfigKeyword config nextgroup=kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
25 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
26
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
27 syn keyword kconfigKeyword menuconfig nextgroup=kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
28 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
29
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
30 syn keyword kconfigKeyword comment menu mainmenu
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
31 \ nextgroup=kconfigKeywordPrompt
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
32 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
33
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
34 syn keyword kconfigKeyword choice
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
35 \ nextgroup=@kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
36 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
37
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
38 syn keyword kconfigKeyword endmenu endchoice
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
39
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
40 syn keyword kconfigPreProc source
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
41 \ nextgroup=kconfigPath
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
42 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
43
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
44 " TODO: This is a hack. The who .*Expr stuff should really be generated so
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
45 " that we can reuse it for various nextgroups.
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
46 syn keyword kconfigConditional if endif
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
47 \ nextgroup=@kconfigConfigOptionIfExpr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
48 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
49
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
50 syn match kconfigKeywordPrompt '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
51 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
52 \ nextgroup=@kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
53 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
54
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
55 syn match kconfigPath '"[^"\\]*\%(\\.[^"\\]*\)*"\|\S\+'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
56 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
57
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
58 syn match kconfigSymbol '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
59 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
60 \ nextgroup=@kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
61 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
62
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
63 " FIXME: There is – probably – no reason to cluster these instead of just
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
64 " defining them in the same group.
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
65 syn cluster kconfigConfigOptions contains=kconfigTypeDefinition,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
66 \ kconfigInputPrompt,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
67 \ kconfigDefaultValue,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
68 \ kconfigDependencies,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
69 \ kconfigReverseDependencies,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
70 \ kconfigNumericalRanges,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
71 \ kconfigHelpText,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
72 \ kconfigDefBool,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
73 \ kconfigOptional
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
74
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
75 syn keyword kconfigTypeDefinition bool boolean tristate string hex int
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
76 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
77 \ nextgroup=kconfigTypeDefPrompt,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
78 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
79 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
80
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
81 syn match kconfigTypeDefPrompt '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
82 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
83 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
84 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
85 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
86
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
87 syn match kconfigTypeDefPrompt "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
88 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
89 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
90 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
91 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
92
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
93 syn keyword kconfigInputPrompt prompt
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
94 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
95 \ nextgroup=kconfigPromptPrompt
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
96 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
97
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
98 syn match kconfigPromptPrompt '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
99 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
100 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
101 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
102 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
103
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
104 syn match kconfigPromptPrompt "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
105 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
106 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
107 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
108 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
109
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
110 syn keyword kconfigDefaultValue default
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
111 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
112 \ nextgroup=@kconfigConfigOptionExpr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
113 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
114
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
115 syn match kconfigDependencies 'depends on\|requires'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
116 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
117 \ nextgroup=@kconfigConfigOptionIfExpr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
118 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
119
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
120 syn keyword kconfigReverseDependencies select
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
121 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
122 \ nextgroup=@kconfigRevDepSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
123 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
124
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
125 syn cluster kconfigRevDepSymbol contains=kconfigRevDepCSymbol,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
126 \ kconfigRevDepNCSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
127
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
128 syn match kconfigRevDepCSymbol '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
129 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
130 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
131 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
132 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
133
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
134 syn match kconfigRevDepCSymbol "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
135 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
136 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
137 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
138 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
139
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
140 syn match kconfigRevDepNCSymbol '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
141 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
142 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
143 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
144 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
145
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
146 syn keyword kconfigNumericalRanges range
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
147 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
148 \ nextgroup=@kconfigRangeSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
149 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
150
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
151 syn cluster kconfigRangeSymbol contains=kconfigRangeCSymbol,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
152 \ kconfigRangeNCSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
153
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
154 syn match kconfigRangeCSymbol '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
155 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
156 \ nextgroup=@kconfigRangeSymbol2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
157 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
158
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
159 syn match kconfigRangeCSymbol "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
160 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
161 \ nextgroup=@kconfigRangeSymbol2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
162 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
163
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
164 syn match kconfigRangeNCSymbol '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
165 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
166 \ nextgroup=@kconfigRangeSymbol2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
167 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
168
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
169 syn cluster kconfigRangeSymbol2 contains=kconfigRangeCSymbol2,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
170 \ kconfigRangeNCSymbol2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
171
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
172 syn match kconfigRangeCSymbol2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
173 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
174 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
175 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
176 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
177
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
178 syn match kconfigRangeNCSymbol2 '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
179 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
180 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
181 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
182 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
183
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
184 syn region kconfigHelpText contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
185 \ matchgroup=kconfigConfigOption
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 826
diff changeset
186 \ start='\%(help\|---help---\)\ze\s*\n\z(\s\+\)'
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
187 \ skip='^$'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
188 \ end='^\z1\@!'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
189 \ nextgroup=@kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
190 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
191
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
192 " XXX: Undocumented
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
193 syn keyword kconfigDefBool def_bool
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
194 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
195 \ nextgroup=@kconfigDefBoolSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
196 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
197
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
198 syn cluster kconfigDefBoolSymbol contains=kconfigDefBoolCSymbol,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
199 \ kconfigDefBoolNCSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
200
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
201 syn match kconfigDefBoolCSymbol '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
202 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
203 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
204 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
205 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
206
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
207 syn match kconfigDefBoolCSymbol "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
208 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
209 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
210 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
211 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
212
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
213 syn match kconfigDefBoolNCSymbol '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
214 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
215 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
216 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
217 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
218
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
219 " XXX: This is actually only a valid option for “choice”, but treating it
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
220 " specially would require a lot of extra groups.
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
221 syn keyword kconfigOptional optional
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
222 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
223 \ nextgroup=@kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
224 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
225
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
226 syn keyword kconfigConfigOptionIf if
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
227 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
228 \ nextgroup=@kconfigConfigOptionIfExpr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
229 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
230
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
231 syn cluster kconfigConfigOptionIfExpr contains=@kconfigConfOptIfExprSym,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
232 \ kconfigConfOptIfExprNeg,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
233 \ kconfigConfOptIfExprGroup
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
234
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
235 syn cluster kconfigConfOptIfExprSym contains=kconfigConfOptIfExprCSym,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
236 \ kconfigConfOptIfExprNCSym
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
237
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
238 syn match kconfigConfOptIfExprCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
239 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
240 \ nextgroup=@kconfigConfigOptions,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
241 \ kconfigConfOptIfExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
242 \ kconfigConfOptIfExprOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
243 \ kconfigConfOptIfExprEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
244 \ kconfigConfOptIfExprNEq
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
245 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
246
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
247 syn match kconfigConfOptIfExprCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
248 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
249 \ nextgroup=@kconfigConfigOptions,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
250 \ kconfigConfOptIfExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
251 \ kconfigConfOptIfExprOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
252 \ kconfigConfOptIfExprEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
253 \ kconfigConfOptIfExprNEq
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
254 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
255
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
256 syn match kconfigConfOptIfExprNCSym '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
257 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
258 \ nextgroup=@kconfigConfigOptions,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
259 \ kconfigConfOptIfExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
260 \ kconfigConfOptIfExprOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
261 \ kconfigConfOptIfExprEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
262 \ kconfigConfOptIfExprNEq
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
263 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
264
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
265 syn cluster kconfigConfOptIfExprSym2 contains=kconfigConfOptIfExprCSym2,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
266 \ kconfigConfOptIfExprNCSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
267
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
268 syn match kconfigConfOptIfExprEq '='
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
269 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
270 \ nextgroup=@kconfigConfOptIfExprSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
271 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
272
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
273 syn match kconfigConfOptIfExprNEq '!='
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
274 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
275 \ nextgroup=@kconfigConfOptIfExprSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
276 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
277
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
278 syn match kconfigConfOptIfExprCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
279 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
280 \ nextgroup=@kconfigConfigOptions,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
281 \ kconfigConfOptIfExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
282 \ kconfigConfOptIfExprOr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
283 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
284
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
285 syn match kconfigConfOptIfExprNCSym2 '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
286 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
287 \ nextgroup=@kconfigConfigOptions,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
288 \ kconfigConfOptIfExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
289 \ kconfigConfOptIfExprOr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
290 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
291
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
292 syn match kconfigConfOptIfExprNeg '!'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
293 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
294 \ nextgroup=@kconfigConfigOptionIfExpr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
295 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
296
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
297 syn match kconfigConfOptIfExprAnd '&&'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
298 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
299 \ nextgroup=@kconfigConfigOptionIfExpr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
300 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
301
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
302 syn match kconfigConfOptIfExprOr '||'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
303 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
304 \ nextgroup=@kconfigConfigOptionIfExpr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
305 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
306
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
307 syn match kconfigConfOptIfExprGroup '('
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
308 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
309 \ nextgroup=@kconfigConfigOptionIfGExp
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
310 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
311
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
312 " TODO: hm, this kind of recursion doesn't work right. We need another set of
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
313 " expressions that have kconfigConfigOPtionIfGExp as nextgroup and a matcher
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
314 " for '(' that sets it all off.
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
315 syn cluster kconfigConfigOptionIfGExp contains=@kconfigConfOptIfGExpSym,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
316 \ kconfigConfOptIfGExpNeg,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
317 \ kconfigConfOptIfExprGroup
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
318
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
319 syn cluster kconfigConfOptIfGExpSym contains=kconfigConfOptIfGExpCSym,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
320 \ kconfigConfOptIfGExpNCSym
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
321
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
322 syn match kconfigConfOptIfGExpCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
323 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
324 \ nextgroup=@kconfigConfigIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
325 \ kconfigConfOptIfGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
326 \ kconfigConfOptIfGExpOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
327 \ kconfigConfOptIfGExpEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
328 \ kconfigConfOptIfGExpNEq
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
329 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
330
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
331 syn match kconfigConfOptIfGExpCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
332 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
333 \ nextgroup=@kconfigConfigIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
334 \ kconfigConfOptIfGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
335 \ kconfigConfOptIfGExpOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
336 \ kconfigConfOptIfGExpEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
337 \ kconfigConfOptIfGExpNEq
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
338 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
339
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
340 syn match kconfigConfOptIfGExpNCSym '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
341 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
342 \ nextgroup=kconfigConfOptIfExprGrpE,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
343 \ kconfigConfOptIfGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
344 \ kconfigConfOptIfGExpOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
345 \ kconfigConfOptIfGExpEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
346 \ kconfigConfOptIfGExpNEq
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
347 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
348
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
349 syn cluster kconfigConfOptIfGExpSym2 contains=kconfigConfOptIfGExpCSym2,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
350 \ kconfigConfOptIfGExpNCSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
351
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
352 syn match kconfigConfOptIfGExpEq '='
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
353 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
354 \ nextgroup=@kconfigConfOptIfGExpSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
355 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
356
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
357 syn match kconfigConfOptIfGExpNEq '!='
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
358 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
359 \ nextgroup=@kconfigConfOptIfGExpSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
360 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
361
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
362 syn match kconfigConfOptIfGExpCSym2 '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
363 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
364 \ nextgroup=kconfigConfOptIfExprGrpE,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
365 \ kconfigConfOptIfGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
366 \ kconfigConfOptIfGExpOr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
367 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
368
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
369 syn match kconfigConfOptIfGExpCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
370 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
371 \ nextgroup=kconfigConfOptIfExprGrpE,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
372 \ kconfigConfOptIfGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
373 \ kconfigConfOptIfGExpOr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
374 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
375
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
376 syn match kconfigConfOptIfGExpNCSym2 '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
377 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
378 \ nextgroup=kconfigConfOptIfExprGrpE,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
379 \ kconfigConfOptIfGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
380 \ kconfigConfOptIfGExpOr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
381 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
382
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
383 syn match kconfigConfOptIfGExpNeg '!'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
384 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
385 \ nextgroup=@kconfigConfigOptionIfGExp
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
386 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
387
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
388 syn match kconfigConfOptIfGExpAnd '&&'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
389 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
390 \ nextgroup=@kconfigConfigOptionIfGExp
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
391 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
392
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
393 syn match kconfigConfOptIfGExpOr '||'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
394 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
395 \ nextgroup=@kconfigConfigOptionIfGExp
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
396 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
397
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
398 syn match kconfigConfOptIfExprGrpE ')'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
399 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
400 \ nextgroup=@kconfigConfigOptions,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
401 \ kconfigConfOptIfExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
402 \ kconfigConfOptIfExprOr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
403 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
404
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
405
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
406 syn cluster kconfigConfigOptionExpr contains=@kconfigConfOptExprSym,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
407 \ kconfigConfOptExprNeg,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
408 \ kconfigConfOptExprGroup
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
409
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
410 syn cluster kconfigConfOptExprSym contains=kconfigConfOptExprCSym,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
411 \ kconfigConfOptExprNCSym
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
412
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
413 syn match kconfigConfOptExprCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
414 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
415 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
416 \ kconfigConfOptExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
417 \ kconfigConfOptExprOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
418 \ kconfigConfOptExprEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
419 \ kconfigConfOptExprNEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
420 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
421 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
422
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
423 syn match kconfigConfOptExprCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
424 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
425 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
426 \ kconfigConfOptExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
427 \ kconfigConfOptExprOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
428 \ kconfigConfOptExprEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
429 \ kconfigConfOptExprNEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
430 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
431 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
432
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
433 syn match kconfigConfOptExprNCSym '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
434 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
435 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
436 \ kconfigConfOptExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
437 \ kconfigConfOptExprOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
438 \ kconfigConfOptExprEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
439 \ kconfigConfOptExprNEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
440 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
441 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
442
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
443 syn cluster kconfigConfOptExprSym2 contains=kconfigConfOptExprCSym2,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
444 \ kconfigConfOptExprNCSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
445
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
446 syn match kconfigConfOptExprEq '='
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
447 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
448 \ nextgroup=@kconfigConfOptExprSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
449 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
450
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
451 syn match kconfigConfOptExprNEq '!='
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
452 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
453 \ nextgroup=@kconfigConfOptExprSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
454 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
455
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
456 syn match kconfigConfOptExprCSym2 '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
457 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
458 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
459 \ kconfigConfOptExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
460 \ kconfigConfOptExprOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
461 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
462 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
463
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
464 syn match kconfigConfOptExprCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
465 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
466 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
467 \ kconfigConfOptExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
468 \ kconfigConfOptExprOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
469 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
470 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
471
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
472 syn match kconfigConfOptExprNCSym2 '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
473 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
474 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
475 \ kconfigConfOptExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
476 \ kconfigConfOptExprOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
477 \ @kconfigConfigOptions
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
478 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
479
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
480 syn match kconfigConfOptExprNeg '!'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
481 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
482 \ nextgroup=@kconfigConfigOptionExpr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
483 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
484
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
485 syn match kconfigConfOptExprAnd '&&'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
486 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
487 \ nextgroup=@kconfigConfigOptionExpr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
488 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
489
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
490 syn match kconfigConfOptExprOr '||'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
491 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
492 \ nextgroup=@kconfigConfigOptionExpr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
493 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
494
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
495 syn match kconfigConfOptExprGroup '('
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
496 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
497 \ nextgroup=@kconfigConfigOptionGExp
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
498 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
499
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
500 syn cluster kconfigConfigOptionGExp contains=@kconfigConfOptGExpSym,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
501 \ kconfigConfOptGExpNeg,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
502 \ kconfigConfOptGExpGroup
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
503
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
504 syn cluster kconfigConfOptGExpSym contains=kconfigConfOptGExpCSym,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
505 \ kconfigConfOptGExpNCSym
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
506
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
507 syn match kconfigConfOptGExpCSym '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
508 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
509 \ nextgroup=kconfigConfOptExprGrpE,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
510 \ kconfigConfOptGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
511 \ kconfigConfOptGExpOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
512 \ kconfigConfOptGExpEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
513 \ kconfigConfOptGExpNEq
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
514 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
515
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
516 syn match kconfigConfOptGExpCSym "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
517 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
518 \ nextgroup=kconfigConfOptExprGrpE,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
519 \ kconfigConfOptGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
520 \ kconfigConfOptGExpOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
521 \ kconfigConfOptGExpEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
522 \ kconfigConfOptGExpNEq
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
523 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
524
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
525 syn match kconfigConfOptGExpNCSym '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
526 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
527 \ nextgroup=kconfigConfOptExprGrpE,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
528 \ kconfigConfOptGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
529 \ kconfigConfOptGExpOr,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
530 \ kconfigConfOptGExpEq,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
531 \ kconfigConfOptGExpNEq
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
532 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
533
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
534 syn cluster kconfigConfOptGExpSym2 contains=kconfigConfOptGExpCSym2,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
535 \ kconfigConfOptGExpNCSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
536
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
537 syn match kconfigConfOptGExpEq '='
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
538 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
539 \ nextgroup=@kconfigConfOptGExpSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
540 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
541
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
542 syn match kconfigConfOptGExpNEq '!='
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
543 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
544 \ nextgroup=@kconfigConfOptGExpSym2
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
545 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
546
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
547 syn match kconfigConfOptGExpCSym2 '"[^"\\]*\%(\\.[^"\\]*\)*"'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
548 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
549 \ nextgroup=kconfigConfOptExprGrpE,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
550 \ kconfigConfOptGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
551 \ kconfigConfOptGExpOr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
552 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
553
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
554 syn match kconfigConfOptGExpCSym2 "'[^'\\]*\%(\\.[^'\\]*\)*'"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
555 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
556 \ nextgroup=kconfigConfOptExprGrpE,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
557 \ kconfigConfOptGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
558 \ kconfigConfOptGExpOr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
559 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
560
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
561 syn match kconfigConfOptGExpNCSym2 '\<\k\+\>'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
562 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
563 \ nextgroup=kconfigConfOptExprGrpE,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
564 \ kconfigConfOptGExpAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
565 \ kconfigConfOptGExpOr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
566 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
567
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
568 syn match kconfigConfOptGExpNeg '!'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
569 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
570 \ nextgroup=@kconfigConfigOptionGExp
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
571 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
572
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
573 syn match kconfigConfOptGExpAnd '&&'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
574 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
575 \ nextgroup=@kconfigConfigOptionGExp
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
576 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
577
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
578 syn match kconfigConfOptGExpOr '||'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
579 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
580 \ nextgroup=@kconfigConfigOptionGExp
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
581 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
582
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
583 syn match kconfigConfOptExprGrpE ')'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
584 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
585 \ nextgroup=kconfigConfigOptionIf,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
586 \ kconfigConfOptExprAnd,
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
587 \ kconfigConfOptExprOr
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
588 \ skipwhite skipnl
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
589
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 826
diff changeset
590 syn sync minlines=50
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 826
diff changeset
591
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
592 hi def link kconfigTodo Todo
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
593 hi def link kconfigComment Comment
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
594 hi def link kconfigKeyword Keyword
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
595 hi def link kconfigPreProc PreProc
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
596 hi def link kconfigConditional Conditional
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
597 hi def link kconfigPrompt String
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
598 hi def link kconfigKeywordPrompt kconfigPrompt
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
599 hi def link kconfigPath String
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
600 hi def link kconfigSymbol String
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
601 hi def link kconfigConstantSymbol Constant
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
602 hi def link kconfigConfigOption Type
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
603 hi def link kconfigTypeDefinition kconfigConfigOption
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
604 hi def link kconfigTypeDefPrompt kconfigPrompt
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
605 hi def link kconfigInputPrompt kconfigConfigOption
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
606 hi def link kconfigPromptPrompt kconfigPrompt
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
607 hi def link kconfigDefaultValue kconfigConfigOption
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
608 hi def link kconfigDependencies kconfigConfigOption
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
609 hi def link kconfigReverseDependencies kconfigConfigOption
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
610 hi def link kconfigRevDepCSymbol kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
611 hi def link kconfigRevDepNCSymbol kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
612 hi def link kconfigNumericalRanges kconfigConfigOption
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
613 hi def link kconfigRangeCSymbol kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
614 hi def link kconfigRangeNCSymbol kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
615 hi def link kconfigRangeCSymbol2 kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
616 hi def link kconfigRangeNCSymbol2 kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
617 hi def link kconfigHelpText Normal
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
618 hi def link kconfigDefBool kconfigConfigOption
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
619 hi def link kconfigDefBoolCSymbol kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
620 hi def link kconfigDefBoolNCSymbol kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
621 hi def link kconfigOptional kconfigConfigOption
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
622 hi def link kconfigConfigOptionIf Conditional
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
623 hi def link kconfigConfOptIfExprCSym kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
624 hi def link kconfigConfOptIfExprNCSym kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
625 hi def link kconfigOperator Operator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
626 hi def link kconfigConfOptIfExprEq kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
627 hi def link kconfigConfOptIfExprNEq kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
628 hi def link kconfigConfOptIfExprCSym2 kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
629 hi def link kconfigConfOptIfExprNCSym2 kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
630 hi def link kconfigConfOptIfExprNeg kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
631 hi def link kconfigConfOptIfExprAnd kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
632 hi def link kconfigConfOptIfExprOr kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
633 hi def link kconfigDelimiter Delimiter
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
634 hi def link kconfigConfOptIfExprGroup kconfigDelimiter
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
635 hi def link kconfigConfOptIfGExpCSym kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
636 hi def link kconfigConfOptIfGExpNCSym kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
637 hi def link kconfigConfOptIfGExpEq kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
638 hi def link kconfigConfOptIfGExpNEq kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
639 hi def link kconfigConfOptIfGExpCSym2 kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
640 hi def link kconfigConfOptIfGExpNCSym2 kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
641 hi def link kconfigConfOptIfGExpNeg kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
642 hi def link kconfigConfOptIfGExpAnd kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
643 hi def link kconfigConfOptIfGExpOr kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
644 hi def link kconfigConfOptIfExprGrpE kconfigDelimiter
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
645 hi def link kconfigConfOptExprCSym kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
646 hi def link kconfigConfOptExprNCSym kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
647 hi def link kconfigConfOptExprEq kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
648 hi def link kconfigConfOptExprNEq kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
649 hi def link kconfigConfOptExprCSym2 kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
650 hi def link kconfigConfOptExprNCSym2 kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
651 hi def link kconfigConfOptExprNeg kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
652 hi def link kconfigConfOptExprAnd kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
653 hi def link kconfigConfOptExprOr kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
654 hi def link kconfigConfOptExprGroup kconfigDelimiter
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
655 hi def link kconfigConfOptGExpCSym kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
656 hi def link kconfigConfOptGExpNCSym kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
657 hi def link kconfigConfOptGExpEq kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
658 hi def link kconfigConfOptGExpNEq kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
659 hi def link kconfigConfOptGExpCSym2 kconfigConstantSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
660 hi def link kconfigConfOptGExpNCSym2 kconfigSymbol
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
661 hi def link kconfigConfOptGExpNeg kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
662 hi def link kconfigConfOptGExpAnd kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
663 hi def link kconfigConfOptGExpOr kconfigOperator
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
664 hi def link kconfigConfOptExprGrpE kconfigConfOptIfExprGroup
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
665
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
666 else
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
667
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
668 syn keyword kconfigTodo contained TODO FIXME XXX NOTE
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
669
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
670 syn match kconfigComment display '#.*$' contains=kconfigTodo
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
671
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 837
diff changeset
672 syn keyword kconfigKeyword config menuconfig comment mainmenu
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
673
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 837
diff changeset
674 syn keyword kconfigConditional menu endmenu choice endchoice if endif
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
675
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
676 syn keyword kconfigPreProc source
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
677 \ nextgroup=kconfigPath
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
678 \ skipwhite
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
679
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 826
diff changeset
680 syn keyword kconfigTriState y m n
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 826
diff changeset
681
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
682 syn match kconfigSpecialChar contained '\\.'
837
6bb1fa855dc9 updated for version 7.0e03
vimboss
parents: 828
diff changeset
683 syn match kconfigSpecialChar '\\$'
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
684
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
685 syn region kconfigPath matchgroup=kconfigPath
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
686 \ start=+"+ skip=+\\\\\|\\\"+ end=+"+
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
687 \ contains=kconfigSpecialChar
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
688
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
689 syn region kconfigPath matchgroup=kconfigPath
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
690 \ start=+'+ skip=+\\\\\|\\\'+ end=+'+
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
691 \ contains=kconfigSpecialChar
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
692
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
693 syn match kconfigPath '\S\+'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
694 \ contained
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
695
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
696 syn region kconfigString matchgroup=kconfigString
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
697 \ start=+"+ skip=+\\\\\|\\\"+ end=+"+
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
698 \ contains=kconfigSpecialChar
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
699
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
700 syn region kconfigString matchgroup=kconfigString
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
701 \ start=+'+ skip=+\\\\\|\\\'+ end=+'+
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
702 \ contains=kconfigSpecialChar
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
703
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
704 syn keyword kconfigType bool boolean tristate string hex int
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
705
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
706 syn keyword kconfigOption prompt default requires select range
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
707 \ optional
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 826
diff changeset
708 syn match kconfigOption 'depends\%( on\)\='
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
709
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
710 syn keyword kconfigMacro def_bool def_tristate
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
711
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 826
diff changeset
712 syn region kconfigHelpText
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 826
diff changeset
713 \ matchgroup=kconfigOption
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 826
diff changeset
714 \ start='\%(help\|---help---\)\ze\s*\n\z(\s\+\)'
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
715 \ skip='^$'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
716 \ end='^\z1\@!'
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
717
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
718 syn sync match kconfigSyncHelp grouphere kconfigHelpText 'help\|---help---'
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
719
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
720 hi def link kconfigTodo Todo
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
721 hi def link kconfigComment Comment
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
722 hi def link kconfigKeyword Keyword
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
723 hi def link kconfigConditional Conditional
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
724 hi def link kconfigPreProc PreProc
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 826
diff changeset
725 hi def link kconfigTriState Boolean
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
726 hi def link kconfigSpecialChar SpecialChar
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
727 hi def link kconfigPath String
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
728 hi def link kconfigString String
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
729 hi def link kconfigType Type
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
730 hi def link kconfigOption Identifier
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
731 hi def link kconfigHelpText Normal
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
732 hi def link kconfigmacro Macro
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
733
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
734 endif
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
735
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
736 let b:current_syntax = "kconfig"
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
737
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
738 let &cpo = s:cpo_save
1cdd2661f34c updated for version 7.0d01
vimboss
parents:
diff changeset
739 unlet s:cpo_save