annotate runtime/syntax/kconfig.vim @ 930:529c6a431ff5 v7.0.056

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