2 <!-- $Id: css.xml,v 1.2 2008-01-01 23:45:07 ssttoo Exp $ -->
4 <highlight lang="css" case="no">
7 <author name="Andrey Demenev" email="demenev@gmail.com"/>
11 <default innerClass="code" />
14 <region name="mlcomment" innerClass="comment" start="\/\*" end="\*\/" >
19 <block name="atrule" match="(@[a-z\d]+)"
20 innerClass="var" never-contained="yes"/>
22 <region name="property" start="[a-z][a-z\d\-]*\s*:" end="(?=;|\})"
23 innerClass="code" delimClass="reserved" contained="yes"/>
25 <block name="selector" match="(((\.|#)?[a-z]+[a-z\d\-]*(?![a-z\d\-]))|(\*))(?!\s*:\s*[\s\{])"
26 innerClass="identifier" >
29 <block name="pseudo" match=":[a-z][a-z\d\-]*"
30 innerClass="special" />
32 <block name="bescaped" match="\\[\\(\\)\\]"
33 innerClass="string" contained="yes"/>
36 <region name="paramselector" start="\[" end="\]" innerClass="code"
37 delimClass="brackets" >
38 <contains block="paramname" />
39 <not-contains block="identifier" />
40 <contains region="strdouble" />
41 <contains region="strsingle" />
44 <region name="block" start="\{" end="\}" innerClass="code"
45 delimClass="brackets" >
46 <contains region="block" />
47 <contains region="property" />
48 <contains block="selector" />
49 <contains region="mlcomment" />
52 <region name="brackets" start="\(" end="\)" innerClass="string"
53 delimClass="brackets" contained="yes">
54 <contains block="bescaped"/>
57 <region name="strsingle" delimClass="quotes" innerClass="string" start="'" end="'" contained="yes"/>
59 <block name="escaped" match="\\\\|\\"|\\'|\\`" innerClass="special" contained="yes">
60 <onlyin region="strsingle"/>
63 <block name="descaped" match="\\\\|\\"|\\'|\\`|\\t|\\n|\\r" innerClass="special" contained="yes">
64 <onlyin region="strdouble"/>
67 <region name="strdouble" delimClass="quotes" innerClass="string"
68 start=""" end=""" contained="yes" />
70 <block name="measure" match="\d*\.?\d+(\%|em|ex|pc|pt|px|in|mm|cm)"
71 innerClass="number" contained="yes">
72 <onlyin region="property"/>
73 <partClass index="1" innerClass="string" />
76 <block name="number" match="\d*\.?\d+" innerClass="number" contained="yes" >
77 <onlyin region="property"/>
80 <block name="identifier" match="[a-z][a-z\d\-]*"
81 innerClass="code" contained="yes">
82 <onlyin region="property"/>
85 <block name="hexcolor" match="#([\da-f]{6}|[\da-f]{3})\b" innerClass="var" contained="yes">
86 <onlyin region="property"/>
89 <block name="paramname" match="[\w\-\:]+" innerClass="var" contained="yes">
90 <onlyin region="paramselector"/>
93 <keywords name="propertyValue" inherits="identifier" innerClass="string" case = "no">
94 <word name="left-side"/>
95 <keyword match="far-left"/>
96 <keyword match="left"/>
97 <keyword match="center-left"/>
98 <keyword match="center-right"/>
99 <keyword match="center"/>
100 <keyword match="far-right"/>
101 <keyword match="right-side"/>
102 <keyword match="right"/>
103 <keyword match="behind"/>
104 <keyword match="leftwards"/>
105 <keyword match="rightwards"/>
106 <keyword match="inherit"/>
107 <keyword match="scroll"/>
108 <keyword match="fixed"/>
109 <keyword match="transparent"/>
110 <keyword match="none"/>
111 <keyword match="repeat-x"/>
112 <keyword match="repeat-y"/>
113 <keyword match="repeat"/>
114 <keyword match="no-repeat"/>
115 <keyword match="collapse"/>
116 <keyword match="separate"/>
117 <keyword match="auto"/>
118 <keyword match="top"/>
119 <keyword match="bottom"/>
120 <keyword match="both"/>
121 <keyword match="open-quote"/>
122 <keyword match="close-quote"/>
123 <keyword match="no-open-quote"/>
124 <keyword match="no-close-quote"/>
125 <keyword match="crosshair"/>
126 <keyword match="default"/>
127 <keyword match="pointer"/>
128 <keyword match="move"/>
129 <keyword match="e-resize"/>
130 <keyword match="ne-resize"/>
131 <keyword match="nw-resize"/>
132 <keyword match="n-resize"/>
133 <keyword match="se-resize"/>
134 <keyword match="sw-resize"/>
135 <keyword match="s-resize"/>
136 <keyword match="text"/>
137 <keyword match="wait"/>
138 <keyword match="help"/>
139 <keyword match="ltr"/>
140 <keyword match="rtl"/>
141 <keyword match="inline"/>
142 <keyword match="block"/>
143 <keyword match="list-item"/>
144 <keyword match="run-in"/>
145 <keyword match="compact"/>
146 <keyword match="marker"/>
147 <keyword match="table"/>
148 <keyword match="inline-table"/>
149 <keyword match="table-row-group"/>
150 <keyword match="table-header-group"/>
151 <keyword match="table-footer-group"/>
152 <keyword match="table-row"/>
153 <keyword match="table-column-group"/>
154 <keyword match="table-column"/>
155 <keyword match="table-cell"/>
156 <keyword match="table-caption"/>
157 <keyword match="below"/>
158 <keyword match="level"/>
159 <keyword match="above"/>
160 <keyword match="higher"/>
161 <keyword match="lower"/>
162 <keyword match="show"/>
163 <keyword match="hide"/>
164 <keyword match="caption"/>
165 <keyword match="icon"/>
166 <keyword match="menu"/>
167 <keyword match="message-box"/>
168 <keyword match="small-caption"/>
169 <keyword match="status-bar"/>
170 <keyword match="normal"/>
171 <keyword match="wider"/>
172 <keyword match="narrower"/>
173 <keyword match="ultra-condensed"/>
174 <keyword match="extra-condensed"/>
175 <keyword match="condensed"/>
176 <keyword match="semi-condensed"/>
177 <keyword match="semi-expanded"/>
178 <keyword match="expanded"/>
179 <keyword match="extra-expanded"/>
180 <keyword match="ultra-expanded"/>
181 <keyword match="italic"/>
182 <keyword match="oblique"/>
183 <keyword match="small-caps"/>
184 <keyword match="bold"/>
185 <keyword match="bolder"/>
186 <keyword match="lighter"/>
187 <keyword match="inside"/>
188 <keyword match="outside"/>
189 <keyword match="disc"/>
190 <keyword match="circle"/>
191 <keyword match="square"/>
192 <keyword match="decimal"/>
193 <keyword match="decimal-leading-zero"/>
194 <keyword match="lower-roman"/>
195 <keyword match="upper-roman"/>
196 <keyword match="lower-greek"/>
197 <keyword match="lower-alpha"/>
198 <keyword match="lower-latin"/>
199 <keyword match="upper-alpha"/>
200 <keyword match="upper-latin"/>
201 <keyword match="hebrew"/>
202 <keyword match="armenian"/>
203 <keyword match="georgian"/>
204 <keyword match="cjk-ideographic"/>
205 <keyword match="hiragana"/>
206 <keyword match="katakana"/>
207 <keyword match="hiragana-iroha"/>
208 <keyword match="katakana-iroha"/>
209 <keyword match="crop"/>
210 <keyword match="cross"/>
211 <keyword match="invert"/>
212 <keyword match="visible"/>
213 <keyword match="hidden"/>
214 <keyword match="always"/>
215 <keyword match="avoid"/>
216 <keyword match="x-low"/>
217 <keyword match="low"/>
218 <keyword match="medium"/>
219 <keyword match="high"/>
220 <keyword match="x-high"/>
221 <keyword match="mix?"/>
222 <keyword match="repeat?"/>
223 <keyword match="static"/>
224 <keyword match="relative"/>
225 <keyword match="absolute"/>
226 <keyword match="portrait"/>
227 <keyword match="landscape"/>
228 <keyword match="spell-out"/>
229 <keyword match="once"/>
230 <keyword match="digits"/>
231 <keyword match="continuous"/>
232 <keyword match="code"/>
233 <keyword match="x-slow"/>
234 <keyword match="slow"/>
235 <keyword match="fast"/>
236 <keyword match="x-fast"/>
237 <keyword match="faster"/>
238 <keyword match="slower"/>
239 <keyword match="justify"/>
240 <keyword match="underline"/>
241 <keyword match="overline"/>
242 <keyword match="line-through"/>
243 <keyword match="blink"/>
244 <keyword match="capitalize"/>
245 <keyword match="uppercase"/>
246 <keyword match="lowercase"/>
247 <keyword match="embed"/>
248 <keyword match="bidi-override"/>
249 <keyword match="baseline"/>
250 <keyword match="sub"/>
251 <keyword match="super"/>
252 <keyword match="text-top"/>
253 <keyword match="middle"/>
254 <keyword match="text-bottom"/>
255 <keyword match="silent"/>
256 <keyword match="x-soft"/>
257 <keyword match="soft"/>
258 <keyword match="loud"/>
259 <keyword match="x-loud"/>
260 <keyword match="pre"/>
261 <keyword match="nowrap"/>
262 <keyword match="serif"/>
263 <keyword match="sans-serif"/>
264 <keyword match="cursive"/>
265 <keyword match="fantasy"/>
266 <keyword match="monospace"/>
267 <keyword match="empty"/>
268 <keyword match="string"/>
269 <keyword match="strict"/>
270 <keyword match="loose"/>
271 <keyword match="char"/>
272 <keyword match="true"/>
273 <keyword match="false"/>
274 <keyword match="dotted"/>
275 <keyword match="dashed"/>
276 <keyword match="solid"/>
277 <keyword match="double"/>
278 <keyword match="groove"/>
279 <keyword match="ridge"/>
280 <keyword match="inset"/>
281 <keyword match="outset"/>
282 <keyword match="larger"/>
283 <keyword match="smaller"/>
284 <keyword match="xx-small"/>
285 <keyword match="x-small"/>
286 <keyword match="small"/>
287 <keyword match="large"/>
288 <keyword match="x-large"/>
289 <keyword match="xx-large"/>
290 <keyword match="all"/>
291 <keyword match="newspaper"/>
292 <keyword match="distribute"/>
293 <keyword match="distribute-all-lines"/>
294 <keyword match="distribute-center-last"/>
295 <keyword match="inter-word"/>
296 <keyword match="inter-ideograph"/>
297 <keyword match="inter-cluster"/>
298 <keyword match="kashida"/>
299 <keyword match="ideograph-alpha"/>
300 <keyword match="ideograph-numeric"/>
301 <keyword match="ideograph-parenthesis"/>
302 <keyword match="ideograph-space"/>
303 <keyword match="keep-all"/>
304 <keyword match="break-all"/>
305 <keyword match="break-word"/>
306 <keyword match="lr-tb"/>
307 <keyword match="tb-rl"/>
308 <keyword match="thin"/>
309 <keyword match="thick"/>
310 <keyword match="inline-block"/>
311 <keyword match="w-resize"/>
312 <keyword match="hand"/>
313 <keyword match="distribute-letter"/>
314 <keyword match="distribute-space"/>
315 <keyword match="whitespace"/>
316 <keyword match="male"/>
317 <keyword match="female"/>
318 <keyword match="child"/>
322 <keywords name="namedcolor" inherits="identifier" innerClass="var" case = "no">
323 <keyword match="aqua"/>
324 <keyword match="black"/>
325 <keyword match="blue"/>
326 <keyword match="fuchsia"/>
327 <keyword match="gray"/>
328 <keyword match="green"/>
329 <keyword match="lime"/>
330 <keyword match="maroon"/>
331 <keyword match="navy"/>
332 <keyword match="olive"/>
333 <keyword match="purple"/>
334 <keyword match="red"/>
335 <keyword match="silver"/>
336 <keyword match="teal"/>
337 <keyword match="white"/>
338 <keyword match="yellow"/>
339 <keyword match="ActiveBorder"/>
340 <keyword match="ActiveCaption"/>
341 <keyword match="AppWorkspace"/>
342 <keyword match="Background"/>
343 <keyword match="ButtonFace"/>
344 <keyword match="ButtonHighlight"/>
345 <keyword match="ButtonShadow"/>
346 <keyword match="ButtonText"/>
347 <keyword match="CaptionText"/>
348 <keyword match="GrayText"/>
349 <keyword match="Highlight"/>
350 <keyword match="HighlightText"/>
351 <keyword match="InactiveBorder"/>
352 <keyword match="InactiveCaption"/>
353 <keyword match="InactiveCaptionText"/>
354 <keyword match="InfoBackground"/>
355 <keyword match="InfoText"/>
356 <keyword match="Menu"/>
357 <keyword match="MenuText"/>
358 <keyword match="Scrollbar"/>
359 <keyword match="ThreeDDarkShadow"/>
360 <keyword match="ThreeDFace"/>
361 <keyword match="ThreeDHighlight"/>
362 <keyword match="ThreeDLightShadow"/>
363 <keyword match="ThreeDShadow"/>
364 <keyword match="Window"/>
365 <keyword match="WindowFrame"/>
366 <keyword match="WindowText"/>