Debian Codegraph @

data/syntax/carto-css-mml.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language
3 [
4 <!ENTITY null "(?:null|Null|NULL|~)">
5 <!ENTITY bool "(?:y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)">
6
7 <!ENTITY int "(?:0|[\-\+]?[1-9][0-9_]*)">
8 <!ENTITY intOther "[\-\+]?0(?:x_*[0-9a-fA-F][0-9a-fA-F_]*|o?_*[0-7][0-7_]*|b_*[01][01_]*)"> <!-- Hex, Octal, Binary -->
9 <!ENTITY intBase60 "[\-\+]?[1-9][0-9_]*(?:\:[0-5]?[0-9])+">
10 <!ENTITY allInt "(?:&intBase60;|&intOther;|&int;)">
11
12 <!ENTITY float "[\-\+]?(?:[0-9][0-9_]*\.[0-9\._]*|\._*[0-9][0-9\._]*)(?:[eE][\-\+]?[0-9]+)?">
13 <!ENTITY floatExp "[\-\+]?[0-9][0-9_]*[eE][\-\+]?[0-9]+">
14 <!ENTITY floatBase60 "[\-\+]?[0-9][0-9_]*(?:\:[0-5]?[0-9])+\.[0-9_]*">
15 <!ENTITY inf "[\-\+]?\.(?:inf|Inf|INF)\b">
16 <!ENTITY nan "\.(?:nan|NaN|NAN)\b">
17 <!ENTITY allFloat "(?:&float;|&floatExp;|&floatBase60;|&inf;|&nan;)">
18
19 <!ENTITY endValue "(?:\s*$|\s+#)">
20 <!ENTITY endValueInline "\s*[:,\[\]\{\}]">
21 <!ENTITY space "[ ]">
22
23 <!-- Key quoted -->
24 <!ENTITY keyDQ "&quot;(?:\\.|[^&quot;])+&quot;\s*">
25 <!ENTITY keySQ "'(?:[^']|'')+'\s*">
26 <!-- Literal/folded operator -->
27 <!ENTITY literalOp "[\|&gt;][\-\+]?">
28 <!-- Key after "?" or "-", used to detect literal/folded operator -->
29 <!ENTITY keyAfterOp "(?:[^&quot;'#\-\?\s][^:#]*|\-(?:[^\s:#][^:#]*)?|&keyDQ;|&keySQ;)">
30
31 <!ENTITY dataTypes "!!\S+">
32 <!ENTITY alias "&amp;\S+">
33 <!ENTITY reference "\*\S+">
34
35 <!ENTITY dpointsHashAttrPreInline1 "[^\s&quot;'#\-,\}\s][^:#,\}]*(?=\:(?:\s|$))">
36 <!ENTITY dpointsHashAttrPreInline2 "\-(?:[^\s:#,\}][^:#,\}]*)?(?=\:(?:\s|$))">
37 <!ENTITY dpointsHashAttrPreInline3 "&keyDQ;(?=\:(?:\s|$))">
38 <!ENTITY dpointsHashAttrPreInline4 "&keySQ;(?=\:(?:\s|$))">
39
40 <!ENTITY dpointsListAttrPreInline1 "[^&quot;'#\-,\]\s][^:#,\]]*(?=\:(?:\s|$))">
41 <!ENTITY dpointsListAttrPreInline2 "\-(?:[^\s:#,\]][^:#,\]]*)?(?=\:(?:\s|$))">
42 <!ENTITY dpointsListAttrPreInline3 "&keyDQ;(?=\:(?:\s|$))">
43 <!ENTITY dpointsListAttrPreInline4 "&keySQ;(?=\:(?:\s|$))">
44
45 <!ENTITY dpointsAttrPre1 "[^&quot;'#\-\s][^:#]*(?=\:(?:\s|$))">
46 <!ENTITY dpointsAttrPre2 "\-(?:[^\s:#][^:#]*)?(?=\:(?:\s|$))">
47 <!ENTITY dpointsAttrPre3 "&keyDQ;(?=\:(?:\s|$))">
48 <!ENTITY dpointsAttrPre4 "&keySQ;(?=\:(?:\s|$))">
49
50 <!-- Matches Yaml keys whose values are SQL statements in CartoCSS MML files. -->
51 <!ENTITY sqlKey "(table|layer_by_sql)">
52
53 ]>
54
55 <!-- Author: Dr Orlovsky MA <[email protected]> //-->
56 <!-- Modifications (YAML 1.2), values & support for literal/folded style:
57 Nibaldo González S. <[email protected]>
58 These modifications are under the MIT license. //-->
59 <!-- Derive the MML syntax highlighting from the yaml syntax highlighting:
60 Lukas Sommer <[email protected]>
61 These modifications are under the MIT license. //-->
62
63 <!-- Syntax highlighting definition for CartoCSS MML, see https://github.com/mapbox/carto
64 CartoCSS defines two file formats: MML (Map Markup Language) and MSS (Map Stylesheet).
65 This file provides syntax highlighting for MML. As MML is yaml, it is derived from
66 the yaml syntax highlighting definition. It adds SQL highlighting for yaml content
67 since MML typically contains a lot of SQL code.
68
69 NOTE This file is mostly identical to yaml.xml so changes to yaml.xml can and should
70 be backported also to this file.
71
72 HACK There are two keys in MML files that have SQL content: “table” and
73 “layer_by_sql”. The good solution would be to recognize these keys and provide
74 SQL highlighting for their content (and only their content):
75 - folded/literal block: Yes
76 - plain string: Possibly. But special treatment for crazy
77 yaml rules required www.yaml-multiline.info
78 says: “:” cannot appear before a space or
79 newline, and “#” cannot appear after a space
80 or newline
81 - single-quoted/double-quoted string: No. Too complicate and too confusing: it would
82 require special SQL highlighting rules that
83 deals with the escapes.
84 But that could be difficult to implement. However, it seems likely that people
85 write SQL in folded/literal blocks, while not using folded/literal blocks for
86 anything else. So for simplicity we will here highlight all folded/literal blocks
87 as SQL and everything else not, regardless of the key.
88 -->
89
90 <language name="CartoCSS MML" version="2" kateversion="5.44" section="Markup"
91 extensions="*.mml"
92 author="Dr Orlovsky MA ([email protected]), Nibaldo González ([email protected]), Lukas Sommer ([email protected])" license="LGPL">
93 <highlighting>
94 <contexts>
95 <context attribute="Attribute" lineEndContext="#stay" name="normal" >
96 <StringDetect attribute="Document Header" context="header" String="---" column="0"/>
97 <RegExpr attribute="End of Document" context="EOD" String="^\.\.\.$" column="0"/>
98 <DetectChar attribute="Directive" context="directive" char="%" column="0"/>
99
100 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
101
102 <!-- Literal/Folded Style -->
103 <IncludeRules context="find-literal-block" />
104
105 <RegExpr attribute="Operator" firstNonSpace="true" context="dash" String="\-(?=\s|$)" />
106 <DetectChar attribute="Operator" firstNonSpace="true" context="mapping-key" char="?" />
107
108 <DetectChar attribute="Operator" firstNonSpace="true" context="list" char="[" beginRegion="List" />
109 <DetectChar attribute="Operator" firstNonSpace="true" context="hash" char="{" beginRegion="Hash" />
110
111 <RegExpr attribute="Data Types" firstNonSpace="true" context="after-data" String="&dataTypes;" />
112 <RegExpr attribute="Alias" firstNonSpace="true" context="after-data" String="&alias;" />
113 <RegExpr attribute="Reference" firstNonSpace="true" context="after-data" String="&reference;" />
114
115 <RegExpr attribute="Key" context="dpoints-attribute-pre" String="&dpointsAttrPre1;|&dpointsAttrPre2;|&dpointsAttrPre3;|&dpointsAttrPre4;"/>
116 <RegExpr attribute="Key Points Operator" context="attribute-pre" String=":(?=\s|$)"/>
117
118 <DetectChar attribute="String" firstNonSpace="true" context="string" char="'" beginRegion="String" />
119 <DetectChar attribute="String" firstNonSpace="true" context="stringx" char="&quot;" beginRegion="String" />
120 <IncludeRules context="values-firstnonspace" />
121 <DetectSpaces/>
122 </context>
123
124 <context attribute="Normal Text" lineEndContext="#pop" name="mapping-key" fallthrough="true" fallthroughContext="#pop">
125 <RegExpr attribute="Comment" context="#pop!comment" String="(?:^|\s+)#" />
126 <DetectSpaces />
127 <RegExpr attribute="Operator" context="#pop!dash" String="\-(?=\s|$)" />
128 <RegExpr attribute="Data Types" context="#pop!after-data" String="&dataTypes;" />
129 <RegExpr attribute="Alias" context="#pop!after-data" String="&alias;" />
130 <RegExpr attribute="Reference" context="#pop!after-data" String="&reference;" />
131
132 <DetectChar attribute="Operator" context="#pop!list" char="[" beginRegion="List" />
133 <DetectChar attribute="Operator" context="#pop!hash" char="{" beginRegion="Hash" />
134 <DetectChar attribute="String" context="#pop!string" char="'" beginRegion="String" />
135 <DetectChar attribute="String" context="#pop!stringx" char="&quot;" beginRegion="String" />
136 </context>
137
138 <context attribute="Normal Text" lineEndContext="#pop" name="dash" fallthrough="true" fallthroughContext="#pop">
139 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
140 <DetectSpaces/>
141 <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
142 <RegExpr attribute="Alias" context="#stay" String="&alias;" />
143 <RegExpr attribute="Reference" context="#stay" String="&reference;" />
144 <IncludeRules context="values" />
145 <DetectChar attribute="Operator" context="#pop!mapping-key" char="?" />
146 <RegExpr attribute="Operator" context="#stay" String="\-(?=\s|$)" />
147
148 <DetectChar attribute="Operator" context="#pop!list" char="[" beginRegion="List" />
149 <DetectChar attribute="Operator" context="#pop!hash" char="{" beginRegion="Hash" />
150 <DetectChar attribute="String" context="#pop!string" char="'" beginRegion="String" />
151 <DetectChar attribute="String" context="#pop!stringx" char="&quot;" beginRegion="String" />
152 </context>
153
154 <!-- Highlight lists, hashes and strings after a data type, reference or alias -->
155 <context attribute="Normal Text" lineEndContext="#pop" name="after-data" fallthrough="true" fallthroughContext="#pop">
156 <RegExpr attribute="Comment" context="#pop!comment" String="(?:^|\s+)#" />
157 <DetectSpaces />
158 <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
159 <RegExpr attribute="Alias" context="#stay" String="&alias;" />
160 <RegExpr attribute="Reference" context="#stay" String="&reference;" />
161
162 <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
163 <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
164 <DetectChar attribute="String" context="string" char="'" beginRegion="String" />
165 <DetectChar attribute="String" context="stringx" char="&quot;" beginRegion="String" />
166 </context>
167
168 <context attribute="Document Header" lineEndContext="#pop" name="header">
169 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
170 <RegExpr attribute="Literal/Folded Operator" context="header-literal-operator" String="\s&literalOp;(?=&endValue;)" lookAhead="true" />
171 </context>
172 <context attribute="Document Header" lineEndContext="#pop#pop" name="header-literal-operator" fallthrough="true" fallthroughContext="#pop">
173 <DetectSpaces />
174 <RegExpr attribute="Literal/Folded Operator" context="#pop#pop!literal-block-simple" String="&literalOp;" beginRegion="Literal" />
175 </context>
176
177 <context attribute="End of Document" lineEndContext="#stay" name="EOD">
178 </context>
179
180 <context attribute="Directive" lineEndContext="#pop" name="directive">
181 </context>
182
183 <context attribute="Attribute" lineEndContext="#pop#pop" name="attribute">
184 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
185 </context>
186
187 <context attribute="Attribute" lineEndContext="#stay" name="list-attribute-inline">
188 <AnyChar attribute="Operator" context="#pop#pop" lookAhead="true" String=",]" />
189 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
190 </context>
191 <context attribute="Attribute" lineEndContext="#stay" name="hash-attribute-inline">
192 <AnyChar attribute="Operator" context="#pop#pop" lookAhead="true" String=",}" />
193 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
194 </context>
195
196 <!-- Attribute -->
197 <context attribute="Attribute" lineEndContext="#pop" name="dpoints-attribute-pre" fallthrough="true" fallthroughContext="#pop!attribute-pre">
198 <DetectChar attribute="Key Points Operator" context="#pop!attribute-pre" char=":" /> <!-- Highlight two points after Key -->
199 </context>
200 <context attribute="Attribute" lineEndContext="#pop" name="attribute-pre" fallthrough="true" fallthroughContext="attribute">
201 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
202 <DetectSpaces/>
203 <DetectChar attribute="Operator" context="#stay" char="?" />
204 <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
205 <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
206 <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
207 <DetectChar attribute="String" context="attribute-string" char="'" beginRegion="String" />
208 <DetectChar attribute="String" context="attribute-stringx" char="&quot;" beginRegion="String" />
209 <RegExpr attribute="Alias" context="#stay" String="&alias;(?=\s+[\[\{])" />
210 <RegExpr attribute="Reference" context="#stay" String="&reference;(?=\s+[\[\{])" />
211 <RegExpr attribute="Alias" context="attribute" String="&alias;" />
212 <RegExpr attribute="Reference" context="attribute" String="&reference;" />
213 <IncludeRules context="values" />
214 <RegExpr attribute="Literal/Folded Operator" context="#stay" String="&literalOp;(?=&endValue;)" />
215 </context>
216
217 <context attribute="Attribute" lineEndContext="#pop" name="default-attribute-pre-inline">
218 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
219 <DetectSpaces/>
220
221 <DetectChar attribute="Operator" context="#stay" char="?" />
222 <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
223 <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
224 <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
225 <DetectChar attribute="String" context="attribute-string-inline" char="'" beginRegion="String" />
226 <DetectChar attribute="String" context="attribute-stringx-inline" char="&quot;" beginRegion="String" />
227 <RegExpr attribute="Alias" context="#stay" String="&alias;(?=\s+[\[\{])" />
228 <RegExpr attribute="Reference" context="#stay" String="&reference;(?=\s+[\[\{])" />
229 </context>
230
231 <!-- Attribute Inline, Within List -->
232 <context attribute="Attribute" lineEndContext="#pop" name="dpoints-list-attribute-pre-inline" fallthrough="true" fallthroughContext="#pop!list-attribute-pre-inline">
233 <DetectChar attribute="Key Points Operator" context="#pop!list-attribute-pre-inline" char=":" /> <!-- Highlight two points after Key -->
234 </context>
235 <context attribute="Attribute" lineEndContext="#pop" name="list-attribute-pre-inline" fallthrough="true" fallthroughContext="list-attribute-inline">
236 <IncludeRules context="default-attribute-pre-inline" />
237 <RegExpr attribute="Alias" context="list-attribute-inline" String="&alias;" />
238 <RegExpr attribute="Reference" context="list-attribute-inline" String="&reference;" />
239
240 <AnyChar attribute="Operator" context="#pop" lookAhead="true" String=",]" />
241 <IncludeRules context="values-inline" />
242 </context>
243
244 <!-- Attribute Inline, Within Hash -->
245 <context attribute="Attribute" lineEndContext="#pop" name="dpoints-hash-attribute-pre-inline" fallthrough="true" fallthroughContext="#pop!hash-attribute-pre-inline">
246 <DetectChar attribute="Key Points Operator" context="#pop!hash-attribute-pre-inline" char=":" /> <!-- Highlight two points after Key -->
247 </context>
248 <context attribute="Attribute" lineEndContext="#pop" name="hash-attribute-pre-inline" fallthrough="true" fallthroughContext="hash-attribute-inline">
249 <IncludeRules context="default-attribute-pre-inline" />
250 <RegExpr attribute="Alias" context="hash-attribute-inline" String="&alias;" />
251 <RegExpr attribute="Reference" context="hash-attribute-inline" String="&reference;" />
252
253 <AnyChar attribute="Operator" context="#pop" lookAhead="true" String=",}" />
254 <IncludeRules context="values-inline" />
255 </context>
256
257 <!-- List -->
258 <!-- Context "find-values-list" highlights values and then sends to "list-element" -->
259 <context attribute="List" lineEndContext="#stay" name="list" fallthrough="true" fallthroughContext="#pop!find-values-list" noIndentationBasedFolding="true">
260 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
261 <DetectSpaces />
262 <DetectChar attribute="Operator" context="#pop!find-values-list" char="?" />
263 </context>
264 <context attribute="List" lineEndContext="#stay" name="list-element" noIndentationBasedFolding="true">
265 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
266
267 <DetectChar attribute="Operator" context="#pop" char="]" endRegion="List" />
268 <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
269 <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
270
271 <RegExpr attribute="Key" context="dpoints-list-attribute-pre-inline" String="&dpointsListAttrPreInline1;|&dpointsListAttrPreInline2;|&dpointsListAttrPreInline3;|&dpointsListAttrPreInline4;"/>
272 <RegExpr attribute="Key Points Operator" context="list-attribute-pre-inline" String=":(?=\s|$)" firstNonSpace="true" />
273
274 <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
275 <RegExpr attribute="Alias" context="#stay" String="&alias;" />
276 <RegExpr attribute="Reference" context="#stay" String="&reference;" />
277 <DetectChar attribute="String" context="string" char="'" beginRegion="String" />
278 <DetectChar attribute="String" context="stringx" char="&quot;" beginRegion="String" />
279
280 <DetectChar attribute="Operator" context="#pop!list" char="," />
281 <IncludeRules context="values-list" />
282 </context>
283
284 <!-- Hash -->
285 <context attribute="Hash" lineEndContext="#stay" name="hash" fallthrough="true" fallthroughContext="#pop!hash-element" noIndentationBasedFolding="true">
286 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
287 <DetectSpaces />
288 <DetectChar attribute="Operator" context="#pop!hash-element" char="?" />
289 </context>
290 <context attribute="Hash" lineEndContext="#stay" name="hash-element" noIndentationBasedFolding="true">
291 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
292 <DetectSpaces/>
293
294 <RegExpr attribute="Key" context="dpoints-hash-attribute-pre-inline" String="&dpointsHashAttrPreInline1;|&dpointsHashAttrPreInline2;|&dpointsHashAttrPreInline3;|&dpointsHashAttrPreInline4;"/>
295 <RegExpr attribute="Key Points Operator" context="hash-attribute-pre-inline" String=":(?=\s|$)"/>
296
297 <DetectChar attribute="Operator" context="#pop" char="}" endRegion="Hash" />
298 <DetectChar attribute="Operator" context="#pop!hash" char="," />
299
300 <!-- This improves highlighting in keys with multiple lines -->
301 <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
302 <RegExpr attribute="Alias" context="#stay" String="&alias;" />
303 <RegExpr attribute="Reference" context="#stay" String="&reference;" />
304 <DetectChar attribute="String" context="string" char="'" beginRegion="String" />
305 <DetectChar attribute="String" context="stringx" char="&quot;" beginRegion="String" />
306 </context>
307
308 <!-- Strings -->
309 <context attribute="String" lineEndContext="#stay" name="attribute-string" noIndentationBasedFolding="true">
310 <DetectIdentifier />
311 <IncludeRules context="escaped-char-singleq" />
312 <DetectChar attribute="String" context="attribute-end" char="'" endRegion="String" />
313 </context>
314
315 <context attribute="String" lineEndContext="#stay" name="attribute-stringx" noIndentationBasedFolding="true">
316 <DetectIdentifier />
317 <IncludeRules context="escaped-char-doubleq" />
318 <DetectChar attribute="String" context="attribute-end" char="&quot;" endRegion="String" />
319 </context>
320
321 <context attribute="String" lineEndContext="#stay" name="attribute-string-inline" noIndentationBasedFolding="true">
322 <DetectIdentifier />
323 <IncludeRules context="escaped-char-singleq" />
324 <DetectChar attribute="String" context="attribute-end-inline" char="'" endRegion="String" />
325 </context>
326
327 <context attribute="String" lineEndContext="#stay" name="attribute-stringx-inline" noIndentationBasedFolding="true">
328 <DetectIdentifier />
329 <IncludeRules context="escaped-char-doubleq" />
330 <DetectChar attribute="String" context="attribute-end-inline" char="&quot;" endRegion="String" />
331 </context>
332
333 <context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end">
334 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
335 <DetectSpaces attribute="Normal Text" context="#stay"/>
336 </context>
337
338 <context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end-inline">
339 <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
340 <DetectSpaces attribute="Normal Text" context="#stay"/>
341 <AnyChar context="#pop#pop#pop" lookAhead="true" String="}],"/>
342 </context>
343
344 <context attribute="String" lineEndContext="#stay" name="string" noIndentationBasedFolding="true">
345 <DetectIdentifier />
346 <IncludeRules context="escaped-char-singleq" />
347 <DetectChar attribute="String" context="#pop" char="'" endRegion="String" />
348 </context>
349
350 <context attribute="String" lineEndContext="#stay" name="stringx" noIndentationBasedFolding="true">
351 <DetectIdentifier />
352 <IncludeRules context="escaped-char-doubleq" />
353 <DetectChar attribute="String" context="#pop" char="&quot;" endRegion="String" />
354 </context>
355
356 <context attribute="Normal Text" lineEndContext="#stay" name="escaped-char-doubleq">
357 <RegExpr attribute="Escaped Character" context="#stay" String="\\(?:[\s0abtnvfre&quot;/\\N_Lp]|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})"/>
358 </context>
359
360 <context attribute="Normal Text" lineEndContext="#stay" name="escaped-char-singleq">
361 <Detect2Chars attribute="Escaped Character" context="#stay" char="'" char1="'" />
362 </context>
363
364 <context attribute="Comment" lineEndContext="#pop" name="comment">
365 <DetectSpaces />
366 <IncludeRules context="##Comments" />
367 </context>
368
369 <!-- Values -->
370 <context attribute="Normal Text" lineEndContext="#stay" name="values">
371 <RegExpr attribute="Null" context="#stay" String="&null;(?=&endValue;)"/>
372 <RegExpr attribute="Boolean" context="#stay" String="&bool;(?=&endValue;)"/>
373 <RegExpr attribute="Float" context="#stay" String="&allFloat;(?=&endValue;)"/>
374 <RegExpr attribute="Integer" context="#stay" String="&allInt;(?=&endValue;)"/>
375 </context>
376 <context attribute="Normal Text" lineEndContext="#stay" name="values-firstnonspace">
377 <RegExpr attribute="Null" firstNonSpace="true" context="#stay" String="&null;(?=&endValue;)"/>
378 <RegExpr attribute="Boolean" firstNonSpace="true" context="#stay" String="&bool;(?=&endValue;)"/>
379 <RegExpr attribute="Float" firstNonSpace="true" context="#stay" String="&allFloat;(?=&endValue;)"/>
380 <RegExpr attribute="Integer" firstNonSpace="true" context="#stay" String="&allInt;(?=&endValue;)"/>
381 </context>
382 <context attribute="Normal Text" lineEndContext="#stay" name="values-inline">
383 <RegExpr attribute="Null" context="#stay" String="&null;(?=&endValueInline;|&endValue;)"/>
384 <RegExpr attribute="Boolean" context="#stay" String="&bool;(?=&endValueInline;|&endValue;)"/>
385 <RegExpr attribute="Float" context="#stay" String="&allFloat;(?=&endValueInline;|&endValue;)"/>
386 <RegExpr attribute="Integer" context="#stay" String="&allInt;(?=&endValueInline;|&endValue;)"/>
387 </context>
388
389 <context attribute="Normal Text" lineEndContext="#stay" name="values-list">
390 <RegExpr attribute="Null" context="#stay" String="(?:\s|^)&null;(?=&endValueInline;|&endValue;)"/>
391 <RegExpr attribute="Boolean" context="#stay" String="(?:\s|^)&bool;(?=&endValueInline;|&endValue;)"/>
392 <RegExpr attribute="Float" context="#stay" String="(?:\s|^)&allFloat;(?=&endValueInline;|&endValue;)"/>
393 <RegExpr attribute="Integer" context="#stay" String="(?:\s|^)&allInt;(?=&endValueInline;|&endValue;)"/>
394 </context>
395 <!-- If the value is found immediately at the beginning of the list item -->
396 <context attribute="Normal Text" lineEndContext="#pop!list-element" name="find-values-list" fallthrough="true" fallthroughContext="#pop!list-element">
397 <RegExpr attribute="Null" context="#pop!list-element" String="&null;(?=&endValueInline;|&endValue;)"/>
398 <RegExpr attribute="Boolean" context="#pop!list-element" String="&bool;(?=&endValueInline;|&endValue;)"/>
399 <RegExpr attribute="Float" context="#pop!list-element" String="&allFloat;(?=&endValueInline;|&endValue;)"/>
400 <RegExpr attribute="Integer" context="#pop!list-element" String="&allInt;(?=&endValueInline;|&endValue;)"/>
401 </context>
402
403 <!-- Literal/Folded Style: http://yaml.org/spec/1.2/spec.html#id2795688 -->
404
405 <context attribute="Normal Text" lineEndContext="#stay" name="find-literal-block">
406 <!-- Do not allow indentation with tabs: -->
407 <RegExpr attribute="Alert" context="#stay" column="0"
408 String="^&space;*\t+\s*(?=(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|&lt;&gt;&quot;'])?&literalOp;&endValue;)" />
409
410 <!-- CASE 1: The literal/folded operator is the first character of a line.
411 The text after a space is considered literal.
412 Ex:
413 > |
414 > ^Start the literal text
415 -->
416 <RegExpr attribute="Literal/Folded Operator" context="literal-block-simple" column="0"
417 String="^&literalOp;(?=&endValue;)" beginRegion="Literal" />
418
419 <!-- CASE 2: Only the literal/folded operator is present in a line, after a space (the indentation
420 is captured). The text with the same indentation of the operator will be highlighted as literal.
421 Ex:
422 > key:
423 > |
424 > ^Start the literal text
425
426 However, in this case, the correct way is to use the indentation of the block, not the
427 indentation of the the operator. The problem is that it is difficult to capture.
428 > key1:
429 > key2:
430 > key3:
431 > |
432 > ^Block indentation (correct literal text)
433 -->
434 <RegExpr attribute="Literal/Folded Operator" context="literal-block-only-operator" column="0"
435 String="^(&space;+)&literalOp;(?=&endValue;)" beginRegion="Literal" />
436
437 <!-- CASE 3: There is a Key before the literal/folded operator (Key indentation is captured).
438 The text with the Key's indentation plus a space is considered literal.
439 Ex:
440 > key: |
441 > ^Start the literal text
442 > key: !!type >-
443 > ^Start the folded text
444 -->
445 <RegExpr attribute="Key Points Operator" context="literal-block-key" column="0"
446 String="^(&space;*)\:(?=\s+(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|&lt;&gt;&quot;'])?&literalOp;&endValue;)" />
447 <RegExpr attribute="Key" context="literal-block-key" column="0"
448 String="^(&space;*)(?:[^&quot;'#\-\?\s][^:#]*|\-(?:[^\s:#][^:#]*)?|&keyDQ;|&keySQ;)(?=\:\s+(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|&lt;&gt;&quot;'])?&literalOp;&endValue;)" />
449
450 <!-- CASE 4: Is there an operator "?" or "-" at the beginning of the line.
451 NOTE: Nested characters "-" and "?" are considered as part of the indentation.
452 Therefore, the indentation of the Key or the last operator "?" or "-" is captured.
453 Ex:
454 > ? |
455 > ^Start the literal Text
456 > ? - - |
457 > ^Start the literal text
458 > - Key: |
459 > ^Start the literal text
460 > ? - - - - Key: |
461 > ^Start the literal text
462 -->
463 <RegExpr context="start-literal-block-withdash" lookAhead="true" column="0"
464 String="^&space;*(?:\?&space;*|\-&space;+){1,6}(?:(?:&keyDQ;|&keySQ;|[^#\-\?\s]|\-[^\s#])(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|&lt;&gt;&quot;'])?)?&literalOp;&endValue;" />
465
466 <!-- CASE 5: Literal/folded operator after a data type or other content.
467 Ex:
468 > !!type |
469 > ^Start the literal text
470 > key1:
471 > key2:
472 > !!type |
473 > ^Start the literal text
474 -->
475 <RegExpr context="start-literal-block-other" lookAhead="true" column="0"
476 String="^&space;*(?:(?:[&amp;\*]|!!)\S+\s+)+&literalOp;&endValue;" />
477 </context>
478
479 <!-- If the line with the literal operator starts with the "-" or "?" operator.
480 NOTE: The indentation capture is limited to 6 nested operators. -->
481 <context attribute="Normal Text" lineEndContext="#pop" name="start-literal-block-withdash" noIndentationBasedFolding="true">
482 <!-- With Key: Capture the Key indentation -->
483 <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s2" String="^(&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
484 <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s3" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
485 <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s4" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
486 <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s5" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
487 <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s6" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
488 <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s7" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
489 <!-- Without Key: Capture the indentation of the last operator "?" or "-" -->
490 <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s1" String="^(&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
491 <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s2" String="^(&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
492 <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s3" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
493 <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s4" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
494 <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s5" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
495 <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s6" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
496 </context>
497 <!-- Capture the indentation of data type, reference or alias -->
498 <context attribute="Normal Text" lineEndContext="#pop" name="start-literal-block-other" noIndentationBasedFolding="true">
499 <!-- The text with the same indentation will be considered literal -->
500 <RegExpr attribute="Data Types" context="#pop!literal-block-after-data" String="^(&space;+)&dataTypes;" column="0" />
501 <RegExpr attribute="Alias" context="#pop!literal-block-after-data" String="^(&space;+)&alias;" column="0" />
502 <RegExpr attribute="Reference" context="#pop!literal-block-after-data" String="^(&space;+)&reference;" column="0" />
503 <!-- The text after a space will be considered literal (empty text is captured) -->
504 <RegExpr attribute="Data Types" context="#pop!literal-block-withdash-s1" String="^()&dataTypes;" column="0" />
505 <RegExpr attribute="Alias" context="#pop!literal-block-withdash-s1" String="^()&alias;" column="0" />
506 <RegExpr attribute="Reference" context="#pop!literal-block-withdash-s1" String="^()&reference;" column="0" />
507 </context>
508
509 <!-- Highlight data/attribute before the literal operator (Note that if there is a line
510 break within a string or bracket, the literal line will not be highlighted). -->
511 <context attribute="Attribute" lineEndContext="#pop#pop" name="before-literal-operator" noIndentationBasedFolding="true">
512 <RegExpr attribute="Literal/Folded Operator" context="#pop!end-literal-operator" String="&literalOp;(?=&endValue;)" beginRegion="Literal" />
513
514 <RegExpr attribute="Error" context="#pop#pop" String="(?:[&amp;\*]|!!)\S*&literalOp;(?=&endValue;)" />
515 <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
516 <RegExpr attribute="Alias" context="#stay" String="&alias;" />
517 <RegExpr attribute="Reference" context="#stay" String="&reference;" />
518
519 <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
520 <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
521 <DetectChar attribute="String" context="string" char="'" beginRegion="String" />
522 <DetectChar attribute="String" context="stringx" char="&quot;" beginRegion="String" />
523 </context>
524
525 <context attribute="Normal Text" lineEndContext="#pop#pop" name="dpoints-key-before-literal-operator" fallthrough="true" fallthroughContext="#pop#pop" noIndentationBasedFolding="true">
526 <DetectChar attribute="Key Points Operator" context="#pop!key-before-literal-operator" char=":" />
527 </context>
528 <context attribute="Attribute" lineEndContext="#pop#pop" name="key-before-literal-operator" noIndentationBasedFolding="true">
529 <IncludeRules context="before-literal-operator" />
530 <DetectChar attribute="Operator" context="#stay" char="?" />
531 </context>
532 <context attribute="Attribute" lineEndContext="#pop" name="end-literal-operator" noIndentationBasedFolding="true">
533 <RegExpr attribute="Comment" context="#pop!comment" String="(?:^|\s+)#" />
534 </context>
535
536 <!-- Common rules for the content of the literal blocks -->
537 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-default" noIndentationBasedFolding="true">
538 <!-- End literal/folded block -->
539 <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
540 <!-- Find literal/folded operator -->
541 <RegExpr context="before-literal-operator" String="\S" lookAhead="true" />
542 </context>
543 <context attribute="Normal Text" lineEndContext="#pop" name="literal-block-key-default" noIndentationBasedFolding="true">
544 <!-- End literal/folded block -->
545 <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
546 <!-- Detect Key before the literal/folded operator -->
547 <RegExpr attribute="Key" context="dpoints-key-before-literal-operator" String="&keyAfterOp;(?=:\s)" />
548 <RegExpr attribute="Normal Text" context="#pop" String="\S" lookAhead="true" endRegion="Literal" />
549 </context>
550
551 <!-- Content of the literal block: -->
552
553 <!-- If the literal operator is starting the line (after a space, use block indentation) -->
554 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-only-operator" dynamic="true" noIndentationBasedFolding="true">
555 <StringDetect attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="%1" dynamic="true" column="0" />
556
557 <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
558 <RegExpr attribute="Comment" context="comment" String="(?:^|\s)#" />
559 <RegExpr context="#pop" String="\S" lookAhead="true" endRegion="Literal" />
560 </context>
561 <!-- If the literal operator is the first character of a line (or after header) -->
562 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-simple" noIndentationBasedFolding="true">
563 <DetectSpaces attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" column="0" />
564
565 <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
566 <RegExpr attribute="Comment" context="comment" String="(?:^|\s)#" />
567 </context>
568 <!-- If there is a data type or other content before the liretal operator (use block indentation) -->
569 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-after-data" dynamic="true" noIndentationBasedFolding="true">
570 <StringDetect attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="%1" dynamic="true" column="0" />
571
572 <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
573 <RegExpr context="before-literal-operator" String="\S" lookAhead="true" />
574 </context>
575 <!-- If there is a key before the literal operator -->
576 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key" dynamic="true" noIndentationBasedFolding="true">
577 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1\s" dynamic="true" column="0" />
578
579 <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
580 <!-- Attribute of the Key (the Key was previously highlighted) -->
581 <RegExpr attribute="Key Points Operator" context="key-before-literal-operator" String=":\s" />
582 <RegExpr context="key-before-literal-operator" String="\S" lookAhead="true" />
583 </context>
584 <context attribute="Literal/Folded Block" lineEndContext="#pop" name="injected-sql" noIndentationBasedFolding="true">
585 <!-- CartoCSS is a preprocessor for Mapnik, which supports exclusivly
586 PostgreSQL (with the PostGIS extension) as database, therefore we
587 choose the Postgre flavor of SQL syntax hightlighting here.
588 The includeAttrib="true" in <IncludeRules> will override
589 the attribute="Literal/Folded Block" of the current <context>
590 with attribute="WHATEVER" of the default <context> of
591 "##SQL (PostgreSQL)". This ensures that we get the identical
592 highlighting as in SQL even for default text that has no special
593 rule in the “SQL (PostgreSQL)” syntax highlighting. -->
594 <IncludeRules context="##SQL (PostgreSQL)" includeAttrib="true"/>
595 </context>
596
597 <!-- If there are dashes/"?" before the literal operator -->
598 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s1" dynamic="true" noIndentationBasedFolding="true">
599 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1\s" dynamic="true" column="0" />
600 <IncludeRules context="literal-block-default" />
601 </context>
602 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s2" dynamic="true" noIndentationBasedFolding="true">
603 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2&space;\s" dynamic="true" column="0" />
604 <IncludeRules context="literal-block-default" />
605 </context>
606 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s3" dynamic="true" noIndentationBasedFolding="true">
607 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2%3&space;{2}\s" dynamic="true" column="0" />
608 <IncludeRules context="literal-block-default" />
609 </context>
610 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s4" dynamic="true" noIndentationBasedFolding="true">
611 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2%3%4&space;{3}\s" dynamic="true" column="0" />
612 <IncludeRules context="literal-block-default" />
613 </context>
614 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s5" dynamic="true" noIndentationBasedFolding="true">
615 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2%3%4%5&space;{4}\s" dynamic="true" column="0" />
616 <IncludeRules context="literal-block-default" />
617 </context>
618 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s6" dynamic="true" noIndentationBasedFolding="true">
619 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2%3%4%5%6&space;{5}\s" dynamic="true" column="0" />
620 <IncludeRules context="literal-block-default" />
621 </context>
622 <!-- If there are dashes/"?" and a Key before the literal operator -->
623 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s2" dynamic="true" noIndentationBasedFolding="true">
624 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2&space;\s" dynamic="true" column="0" />
625 <IncludeRules context="literal-block-key-default" />
626 </context>
627 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s3" dynamic="true" noIndentationBasedFolding="true">
628 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2%3&space;{2}\s" dynamic="true" column="0" />
629 <IncludeRules context="literal-block-key-default" />
630 </context>
631 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s4" dynamic="true" noIndentationBasedFolding="true">
632 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2%3%4&space;{3}\s" dynamic="true" column="0" />
633 <IncludeRules context="literal-block-key-default" />
634 </context>
635 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s5" dynamic="true" noIndentationBasedFolding="true">
636 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2%3%4%5&space;{4}\s" dynamic="true" column="0" />
637 <IncludeRules context="literal-block-key-default" />
638 </context>
639 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s6" dynamic="true" noIndentationBasedFolding="true">
640 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2%3%4%5%6&space;{5}\s" dynamic="true" column="0" />
641 <IncludeRules context="literal-block-key-default" />
642 </context>
643 <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s7" dynamic="true" noIndentationBasedFolding="true">
644 <RegExpr attribute="Literal/Folded Block" context="injected-sql" lookAhead="true" String="^%1%2%3%4%5%6%7&space;{6}\s" dynamic="true" column="0" />
645 <IncludeRules context="literal-block-key-default" />
646 </context>
647 </contexts>
648
649 <itemDatas>
650 <itemData name="Normal Text" defStyleNum="dsAttribute" spellChecking="false" />
651 <itemData name="Attribute" defStyleNum="dsAttribute" spellChecking="false" />
652 <itemData name="List" defStyleNum="dsAttribute" spellChecking="false" />
653 <itemData name="Hash" defStyleNum="dsAttribute" spellChecking="false" />
654 <itemData name="Comment" defStyleNum="dsComment" />
655 <itemData name="End of Document" defStyleNum="dsComment" />
656 <itemData name="Document Header" defStyleNum="dsPreprocessor" spellChecking="false" />
657 <itemData name="Data Types" defStyleNum="dsOthers" spellChecking="false" />
658 <itemData name="Alias" defStyleNum="dsOthers" spellChecking="false" />
659 <itemData name="Reference" defStyleNum="dsOthers" spellChecking="false" />
660 <itemData name="Key" defStyleNum="dsFunction" bold="1" spellChecking="false" />
661 <itemData name="Directive" defStyleNum="dsPreprocessor" spellChecking="false" />
662 <itemData name="Key Points Operator" defStyleNum="dsKeyword" spellChecking="false" />
663 <itemData name="Operator" defStyleNum="dsKeyword" spellChecking="false" />
664 <itemData name="String" defStyleNum="dsString" spellChecking="false" />
665 <itemData name="Escaped Character" defStyleNum="dsSpecialChar" spellChecking="false" />
666 <itemData name="Literal/Folded Operator" defStyleNum="dsChar" spellChecking="false" bold="1" />
667 <itemData name="Literal/Folded Block" defStyleNum="dsNormal" spellChecking="false" />
668 <itemData name="Null" defStyleNum="dsChar" spellChecking="false" />
669 <itemData name="Boolean" defStyleNum="dsChar" spellChecking="false" />
670 <itemData name="Integer" defStyleNum="dsDecVal" spellChecking="false" />
671 <itemData name="Float" defStyleNum="dsFloat" spellChecking="false" />
672 <itemData name="Error" defStyleNum="dsError" spellChecking="false" />
673 <itemData name="Alert" defStyleNum="dsAlert" backgroundColor="#EF9A9A" spellChecking="false" />
674 </itemDatas>
675 </highlighting>
676
677 <general>
678 <folding indentationsensitive="1" />
679 <emptyLines>
680 <emptyLine regexpr="(?:\s+|\s*#.*)"/>
681 </emptyLines>
682 <comments>
683 <comment name="singleLine" start="#" position="afterwhitespace" />
684 </comments>
685 <keywords casesensitive="1"/>
686 </general>
687 </language>
688 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->