Debian Codegraph @

data/syntax/d.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language [
3 <!ENTITY hexfloat "0[xX][\da-fA-F_]*(?:\.[\da-fA-F_]*)?[pP][-+]?\d[\d_]*[fFL]?i?">
4 <!-- Float starting with a dot is matched in main context -->
5 <!-- All floats except integers -->
6 <!-- RegExpr is branched rather than using look aheads for efficiency at the expense of extra length -->
7 <!ENTITY float "\d[_\d]*(?:\.(?!\.)[_\d]*(?:[eE][-+]?\d[_\d]*)?[fFL]?i?|[eE][-+]?\d[_\d]*[fFL]?i?|[fF]i?|[fFL]?i)">
8 ]>
9 <!--
10 ========================================================================
11
12 D.XML supports syntax highlighting for the D programming language under Kate.
13
14 Updated 2007-2008 - Diggory Hardy <[email protected]> (copyright kate project).
15 Copyright (C) 2007 - Aziz Köksal <[email protected]>
16 Copyright (C) 2007 - Jari-Matti Mäkelä <[email protected]>
17 Copyright (C) 2004 - Simon J Mackenzie <[email protected]>
18
19 This code is released under the LGPL as part of kdelibs/kate.
20
21 ========================================================================
22
23 D is a next generation language written by Walter Bright of Digital Mars fame.
24 Digital Mars C, C++ and D Compilers can be obtained from http://www.digitalmars.com/d/
25
26 ========================================================================
27
28 UPDATE HISTORY:-
29 2008.09.22 - d.xml 1.61 - D 1.035/2.019 - Fix for identifiers starting _ and containing numbers.
30 2008.08.01 - d.xml 1.60 - D 1.033/2.017 - Merging ddoc.xml 1.14 since there is no advantage to having it separate.
31 2008.07.14 - uncommited - Added properties: .tupleof, .offsetof
32 2008.06.14 - D.XML 1.53 - D 1.030/2.014 - Added user keyword highlighting.
33 2008.06.06 - D.XML 1.53 - D 1.030/2.014 - Small fix involving floats starting . in embedded Ddoc.
34 - Added nothrow and pure attributes (D2.0 only).
35 2008.04.09 - D.XML 1.52 - D 1.028/2.012 - Added properties (especially for arrays).
36 - Added rules for C-Style indenter (thanks vektorboson!)
37 2008.02.22 - D.XML 1.51 - D 1.027/2.011 - Changed char rule behaviour on line end.
38 - Added support for strings ending with c, w or d (must have got lost at some point).
39 2008.02.22 - ddoc.xml 1.14 - Fixes/improvements for macros. Highlights first symbol and non-symbols
40 before as errors; matches embedded brackets () properly.
41 2008.01.09 - D.XML 1.50 - D 1.025/2.009 - Changed pragma, version, deprecated matching to use keyword not DetectString.
42 2007.12.18 - D.XML 1.49 - D 1.025/2.009 - Fixed some bugs to make the StartingLetter context exit correctly and match identifiers properly.
43 2007.12.12 - D.XML 1.48 - D 1.024/2.008 - Adjusted existing contexts somewhat (mostly cleanup).
44 - Implemented scope context to hightlight exit in scope(exit) etc.
45 - Adjusted deprecated keyword highlighting.
46 - Changed layout somewhat.
47 - Implemented extra highlighting rules for expressions, attributes, etc.
48 - Changed a lot of colours.
49 2007.11.15 - D.XML 1.47 - D 1.023/2.007 - Fixed a few unapperent "bugs" found by checkdtd.
50 2007.11.15 - ddoc.xml 1.13 - Fixed a couple of bugs found by checkdtd and changed the version number format.
51 2007.11.5 - ddoc.xml 1.12 - Fixed: correct matching of things like /***/ .
52 2007.10.11 - ddoc.xml 1.11 - Safety catch: check for unterminated code sections (i.e. check for end of
53 ddoc comment even in code sections).
54 - Used DetectIdentifier to (presumably) improve performance.
55 2007.10.09 - uncommited - ditto - Changed some context="#pop" tags to context="#stay" within the normal
56 context (bugfix for ddoc embedded code highlighting).
57 2007.10.9 - ddoc.xml 1.10 - Enabled embedded ddoc code highlighting
58 2007.10.9 - ddoc.xml 1.00 - Initial version
59 2007.10.08 - D.XML 1.46 - D 1.022/2.005 - Stole Alert and Region Marker highlighting from C++ syntax.
60 - Added support for DDoc highlighting.
61 - Reviewed the float regexps again! Tried to make the best of both versions.
62 2007.09.17 - D.XML 1.45 - D 1.021/2.004 - Reverted back to old regexps (but fixed hex floats).
63 Can't combine all float regexps into a single RegExpr element using the '|' operator.
64 It creates strange problems (like program lock-ups and wrong matches).
65 - Fix: '=' is allowed in import statements now.
66 - Fix: character literals are matched correctly now.
67 - The #line special token sequence is matched fully now (the filespec string needs special handling).
68 2007.09.10 - D.XML 1.44 - D 1.021/2.004 - Added __EOF__ to specialtokens.
69 - Replaced float regexps with more accurate ones. Not sure about speed.
70 - Fixed Octal regexp not to match 0_ .
71 2007.07.24 - D.XML 1.43 - D 1.020/2.003 - Added System to ltypes.
72 - Improved matching of version declarations.
73 - Fixed matching of hexadecimal floats.
74 - Deprecated style is stroked out again.
75 2007.07.21 - D.XML 1.42 - D 1.018/2.002 - d.xml validates again according to language.xml.
76 - HTML entities are highlighted now.
77 - Numbers before and after the slice operator are not highl. as floats anymore.
78 - Added C++ to ltypes.
79 - Improved matching of module/import declarations.
80 2007.07.01 - D.XML 1.41 - D 1.017/2.001 - fixed matching of numbers, added deprecated style, minor changes to styles, updated authors line
81 2007.07.01 - D.XML 1.40 - D 1.017/2.001 - matches now .di extensions, removed phobos-specific printf/writef and added
82 - library defined symbols string, wstring, dstring, size_t, ptrdiff_t, hash_t,
83 - Error, Exception, Object, TypeInfo and ClassInfo
84 2007.06.30 - D.XML 1.39 - D 1.017 - matching is much faster now, added "lib" to pragma types, added special tokens,
85 - /+ +/ can be nested now, numbers are matched more correctly, character literals don't span multiple lines anymore
86 - escape sequences inside strings and character literals are highlighted,
87 - non-hex characters in hex strings are highlighted with the Error style,
88 - using more default styles instead of custom ones
89 2007.04.11 - D.XML 1.38 - D 1.011 - ref, macro keywords are now supported, fixed \\ inside a string, updated author
90 2007.02.12 - D.XML 1.37 - D 1.006 - bool, foreach_reverse, lazy, scope and typeid keywords are now supported, fixed \"
91 - inside a string, fixed ending of wysiwyg strings.
92 2004.08.15 - D.XML 1.36 - D 0.98 - Current release of D.
93 - package, writef(strictly speaking writef isn't a keyword) - keywords are now supported.
94 2004.??.?? - D.XML 1.35 - D 0.?? - Not sure how this release got posted!
95 2004.05.23 - D.XML 1.34 - D 0.90 - updated.
96 2004.05.19 - D.XML 1.33 - D 0.89 - mixin - keyword is now supported.
97 2004.05.19 - D.XML 1.32 - D 0.77 - pragma, typeof - keywords are now supported.
98 2004.05.19 - D.XML 1.31 - D 0.76 - is - keyword is now supported.
99 2003.09.06 - D.XML 1.30 - D 0.71 - foreach - keyword is now supported.
100 2003.08.18 - D.XML 1.20 - D 0.69 - floats are now supported.
101 - embedded underscores in integer and float literals are now supported.
102 2003.08.11 - D.XML 1.10 - updated.
103 2003.07.18 - D.XML 1.00 - First released.
104
105 ========================================================================
106 -->
107
108 <language name="D" version="13" kateversion="5.0" section="Sources" extensions="*.d;*.D;*.di;*.DI;" mimetype="text/x-dsrc" casesensitive="true" author="Diggory Hardy ([email protected]), Aziz Köksal ([email protected]), Jari-Matti Mäkelä ([email protected]), Simon J Mackenzie ([email protected])" license="LGPL">
109 <highlighting>
110 <!-- User-defined keywords (add identifiers you'd like highlighted here) -->
111 <list name="userkeywords">
112 </list>
113 <list name="statements">
114 <item>asm</item>
115 <item>body</item>
116 <item>break</item>
117 <item>case</item>
118 <item>catch</item>
119 <item>continue</item>
120 <item>default</item>
121 <item>do</item>
122 <item>else</item>
123 <item>finally</item>
124 <item>for</item>
125 <item>foreach</item>
126 <item>foreach_reverse</item>
127 <item>goto</item>
128 <item>if</item>
129 <item>mixin</item>
130 <item>return</item>
131 <item>switch</item>
132 <item>throw</item>
133 <item>try</item>
134 <item>while</item>
135 <item>with</item>
136
137 <!-- these are statements according to the spec, although I might call them attributes -->
138 <item>synchronized</item>
139
140 </list>
141
142 <list name="attributes">
143 <!-- also storage classes -->
144 <item>abstract</item>
145 <item>align</item>
146 <item>auto</item>
147 <item>const</item>
148 <item>export</item>
149 <item>final</item>
150 <item>immutable</item>
151 <item>inout</item>
152 <item>invariant</item>
153 <item>lazy</item>
154 <item>nothrow</item>
155 <item>override</item>
156 <item>package</item>
157 <item>private</item>
158 <item>protected</item>
159 <item>public</item>
160 <item>pure</item>
161 <item>ref</item>
162 <item>shared</item>
163 <item>static</item>
164
165 <!-- these may be statements -->
166 <!-- in (more common to use as an expression since in attribute is only ever the default) -->
167 <item>out</item>
168 <item>scope</item>
169
170 <item>__gshared</item>
171 </list>
172
173 <list name="expressions">
174 <!-- primary expressions -->
175 <item>false</item>
176 <item>null</item>
177 <item>super</item>
178 <item>this</item>
179 <item>true</item>
180 <item>typeid</item>
181
182 <!-- other expressions -->
183 <item>assert</item>
184 <item>cast</item>
185 <item>is</item>
186 <item>new</item>
187 <item>delete</item>
188 <item>in</item> <!-- also an attribute and a statement -->
189
190 <!-- sometimes declarators -->
191 <item>delegate</item>
192 <item>function</item>
193 </list>
194
195 <list name="modules">
196 <item>module</item>
197 <item>import</item> <!-- also an expression -->
198 </list>
199
200 <list name="declarators">
201 <item>alias</item>
202 <item>enum</item>
203 <item>typedef</item>
204 <item>class</item>
205 <item>interface</item>
206 <item>struct</item>
207 <item>union</item>
208 </list>
209
210 <list name="types">
211 <item>typeof</item>
212
213 <item>void</item>
214 <item>bool</item>
215 <item>byte</item>
216 <item>ubyte</item>
217 <item>short</item>
218 <item>ushort</item>
219 <item>int</item>
220 <item>uint</item>
221 <item>long</item>
222 <item>ulong</item>
223 <item>cent</item>
224 <item>ucent</item>
225 <item>float</item>
226 <item>double</item>
227 <item>real</item>
228 <item>ireal</item>
229 <item>ifloat</item>
230 <item>idouble</item>
231 <item>creal</item>
232 <item>cfloat</item>
233 <item>cdouble</item>
234 <item>char</item>
235 <item>wchar</item>
236 <item>dchar</item>
237 </list>
238
239 <list name="templates">
240 <item>macro</item> <!-- what's this? just reserved? -->
241 <item>template</item>
242 </list>
243
244 <list name="properties">
245 <item>init</item>
246 <item>sizeof</item>
247 <item>alignof</item>
248 <item>mangleof</item>
249 <item>stringof</item>
250 <item>tupleof</item>
251 <item>offsetof</item>
252 <item>max</item>
253 <item>min</item>
254 <item>infinity</item>
255 <item>nan</item>
256 <item>dig</item>
257 <item>epsilon</item>
258 <item>mant_dig</item>
259 <item>max_10_exp</item>
260 <item>max_exp</item>
261 <item>min_10_exp</item>
262 <item>min_exp</item>
263 <item>re</item>
264 <item>im</item>
265 <item>length</item>
266 <item>ptr</item>
267 <item>dup</item>
268 <item>idup</item>
269 <item>reverse</item>
270 <item>sort</item>
271 <item>keys</item>
272 <item>values</item>
273 <item>rehash</item>
274 </list>
275
276 <list name="libsymbols">
277 <!-- these are only symbols defined in object.d(i) -->
278 <item>size_t</item>
279 <item>ptrdiff_t</item>
280 <item>hash_t</item>
281 <item>Error</item>
282 <item>Exception</item>
283 <item>Object</item>
284 <item>TypeInfo</item>
285 <item>ClassInfo</item>
286 <item>ModuleInfo</item>
287 <item>Interface</item>
288 <item>OffsetTypeInfo</item>
289 <item>TypeInfo_Typedef</item>
290 <item>TypeInfo_Enum</item>
291 <item>TypeInfo_Pointer</item>
292 <item>TypeInfo_Array</item>
293 <item>TypeInfo_StaticArray</item>
294 <item>TypeInfo_AssociativeArray</item>
295 <item>TypeInfo_Function</item>
296 <item>TypeInfo_Delegate</item>
297 <item>TypeInfo_Class</item>
298 <item>TypeInfo_Interface</item>
299 <item>TypeInfo_Struct</item>
300 <item>TypeInfo_Tuple</item>
301
302 <!-- phobos only as of tango 0.99.3 -->
303 <item>string</item>
304 <item>wstring</item>
305 <item>dstring</item>
306 <item>bit</item>
307 <item>TypeInfo_Const</item>
308 <item>TypeInfo_Invariant</item>
309 </list>
310
311 <list name="linkage">
312 <item>extern</item>
313 </list>
314 <list name="ltypes">
315 <item>C</item>
316 <!-- <item>C++</item> --><!-- is handled specially in Linkage rule -->
317 <item>D</item>
318 <item>Windows</item>
319 <item>Pascal</item>
320 <item>System</item>
321 <!-- <item>Objective-C</item> --><!-- is handled specially in Linkage rule -->
322 </list>
323
324 <list name="ptypes">
325 <item>inline</item>
326 <item>lib</item>
327 <item>linkerDirective</item>
328 <item>mangle</item>
329 <item>msg</item>
330 <item>startaddress</item>
331 </list>
332
333 <list name="scope_keywords">
334 <item>exit</item>
335 <item>success</item>
336 <item>failure</item>
337 </list>
338
339 <list name="vtypes">
340 <item>DigitalMars</item>
341 <item>X86</item>
342 <item>X86_64</item>
343 <item>Windows</item>
344 <item>Win32</item>
345 <item>Win64</item>
346 <item>linux</item>
347 <item>LittleEndian</item>
348 <item>BigEndian</item>
349 <item>D_Coverage</item>
350 <item>D_InlineAsm_X86</item>
351 <item>unittest</item>
352 <item>D_Version2</item>
353 <item>none</item>
354 <item>all</item>
355 </list>
356
357 <list name="specialtokens">
358 <item>__FILE__</item>
359 <item>__LINE__</item>
360 <item>__DATE__</item>
361 <item>__TIME__</item>
362 <item>__TIMESTAMP__</item>
363 <item>__VENDOR__</item>
364 <item>__VERSION__</item>
365 <item>__EOF__</item>
366 </list>
367
368 <list name="tests">
369 <item>debug</item>
370 <item>unittest</item>
371 </list>
372
373 <list name="pragma">
374 <item>pragma</item>
375 </list>
376
377 <list name="version">
378 <item>version</item>
379 </list>
380
381 <list name="deprecated">
382 <item>deprecated</item>
383 <item>volatile</item> <!-- has been deprecated -->
384 </list>
385
386 <contexts>
387 <context name="normal" attribute="Normal Text" lineEndContext="#stay">
388 <DetectSpaces />
389 <!-- Performance improvement (probably): anything starting with a letter is matched separately -->
390 <RegExpr String="[a-zA-Z_]" attribute="Normal Text" context="StartingLetter" lookAhead="true"/>
391
392 <HlCStringChar attribute="EscapeSequence" context="#stay"/>
393 <Detect2Chars attribute="EscapeSequence" context="UnicodeShort" char="\" char1="u"/>
394 <Detect2Chars attribute="EscapeSequence" context="UnicodeLong" char="\" char1="U"/>
395 <Detect2Chars attribute="EscapeSequence" context="HTMLEntity" char="\" char1="&amp;"/>
396
397 <DetectChar attribute="Char" context="CharLiteral" char="'"/>
398 <DetectChar attribute="String" context="String" char="&quot;"/>
399 <DetectChar attribute="BQString" context="BQString" char="`"/>
400
401 <StringDetect attribute="Region Marker" context="Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />
402 <StringDetect attribute="Region Marker" context="Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />
403 <IncludeRules context="CommentRules" />
404
405 <!-- Match ... and .. before numbers are matched. -->
406 <!-- Now in symbols keywords section -->
407 <StringDetect attribute="Normal Text" context="#stay" String="..."/>
408 <Detect2Chars attribute="Normal Text" char="." char1="."/>
409
410 <!-- Float starting with a dot -->
411 <RegExpr attribute="Float" context="#stay" String="\.\d[\d_]*(?:[eE][-+]?\d[\d_]*)?[fFL]?i?"/>
412
413 <!-- Try to match various built-in properties -->
414 <DetectChar char="." attribute="Normal Text" context="Properties"/>
415
416 <!-- Look ahead for a digit and switch to NumberLiteral context if found. -->
417 <RegExpr context="NumberLiteral" String="\d" attribute="Normal Text" lookAhead="true"/>
418
419 <!-- #line Integer [Filespec] -->
420 <StringDetect attribute="Pragma" context="LinePragma" String="#line"/>
421
422 <!-- Rules for the C-style indenter. Currently problems with /// and /++ comments. -->
423 <DetectChar attribute="Symbol" context="BraceA" char="{" beginRegion="BraceA" />
424 <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
425 </context>
426
427 <context name="BraceA" attribute="Normal Text" lineEndContext="#stay">
428 <DetectChar attribute="Symbol" context="#pop" char="}" endRegion="BraceA" />
429 <IncludeRules context="normal"/>
430 </context>
431
432 <context name="StartingLetter" attribute="Normal Text" lineEndContext="#pop">
433 <DetectSpaces />
434 <!-- fall-through should work now that DetectIdentifier is used (without infinite loops) -->
435 <!-- maybe not... got an infinite loop -->
436 <RegExpr String="[^a-zA-Z_]" attribute="Normal Text" context="#pop" lookAhead="true"/>
437
438 <!-- detect whether scope, in, out, etc. are used as attributes or statements (etc.) -->
439 <!-- rules cannot match across newlines unfortunately -->
440 <RegExpr String="in\s*(?=\{)|out\s*(?=(\(([a-zA-Z_][\w_]*)?\)\s*)?\{)" attribute="Statement" context="#stay" />
441 <RegExpr String="scope\s*(?=\()" attribute="Statement" context="Scope" />
442 <RegExpr String="import\s*(?=\()" attribute="Expression" context="#stay" />
443 <RegExpr String="(function|delegate)\s*(?=\()" attribute="Declarator" context="#stay" />
444
445 <keyword String="statements" attribute="Statement" context="#stay" />
446 <keyword String="attributes" attribute="Attribute" context="#stay" />
447 <keyword String="expressions" attribute="Expression" context="#stay" />
448 <keyword String="declarators" attribute="Declarator" context="#stay" />
449 <keyword String="templates" attribute="Template" context="#stay" />
450 <keyword String="modules" attribute="Module" context="ModuleName"/>
451 <keyword String="types" attribute="Type" context="#stay" />
452 <keyword String="libsymbols" attribute="LibrarySymbols" context="#stay" />
453 <keyword String="linkage" attribute="Linkage" context="Linkage" />
454 <keyword String="specialtokens" attribute="SpecialTokens" context="#stay" />
455 <keyword String="tests" attribute="Tests" context="#stay" />
456 <!-- These must use keyword not DetectString: DetectString does not check for word-break after string. -->
457 <keyword String="pragma" attribute="Pragma" context="Pragma" />
458 <keyword String="version" attribute="Version" context="Version" />
459 <keyword String="deprecated" attribute="Deprecated" context="#stay" />
460
461 <Detect2Chars attribute="RawString" context="RawString" char="r" char1="&quot;"/>
462 <Detect2Chars attribute="HexString" context="HexString" char="x" char1="&quot;"/>
463 <Detect2Chars attribute="Token String Delimiter" context="TokenString" char="q" char1="{"/>
464 <RegExpr attribute="Delimited String Delimiter" context="DelimStrHeredoc" String="q&quot;([A-Za-z_][A-Za-z0-9_]*)$" />
465 <StringDetect attribute="Delimited String Delimiter" context="DelimStrBracket" String="q&quot;[" />
466 <StringDetect attribute="Delimited String Delimiter" context="DelimStrParen" String="q&quot;(" />
467 <StringDetect attribute="Delimited String Delimiter" context="DelimStrLtGt" String="q&quot;&lt;" />
468 <StringDetect attribute="Delimited String Delimiter" context="DelimStrBrace" String="q&quot;{" />
469 <RegExpr attribute="Delimited String Delimiter" context="DelimStrSimple" String="q&quot;([^A-Za-z_[(&lt;{])" />
470
471 <!-- user highlighting: last so as not to interfere with anything else -->
472 <keyword String="userkeywords" attribute="UserKeywords" context="#stay" />
473
474 <DetectIdentifier />
475 </context>
476
477 <context name="Properties" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
478 <keyword String="properties" attribute="Property" context="#pop" />
479 </context>
480 <context name="NumberLiteral" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
481 <!-- Float literals -->
482 <!-- Floats must be matched before Binary|Octal|Hex|DecInteger -->
483 <RegExpr attribute="Float" context="#pop" String="&hexfloat;|&float;"/>
484
485 <!-- Binary|Octal|Hex|DecInteger -->
486 <!-- Common, optional suffix: (L[uU]?|[uU]L?)? -->
487 <RegExpr attribute="Binary" context="#pop" String="0[bB]_*[01][01_]*(?:L[uU]?|[uU]L?)?"/>
488 <!-- Octal must be matched before DecInteger -->
489 <RegExpr attribute="Octal" context="#pop" String="0[0-7_]+(?:L[uU]?|[uU]L?)?"/>
490 <RegExpr attribute="Hex" context="#pop" String="0[xX]_*[\da-fA-F][\da-fA-F_]*(?:L[uU]?|[uU]L?)?"/>
491 <!-- Decimal integers must be matched last -->
492 <RegExpr attribute="Integer" context="#pop" String="\d+[\d_]*(?:L[uU]?|[uU]L?)?"/>
493 </context>
494
495 <context name="LinePragma" attribute="Pragma" lineEndContext="#pop">
496 <DetectSpaces/>
497 <!-- Match an Integer -->
498 <RegExpr attribute="Integer" context="#stay" String="(?:(?:0(?:[0-7_]+|[bB]_*[01][01_]*|[xX]_*[\da-fA-F][\da-fA-F_]*))|\d+[\d_]*)(?:L[uU]?|[uU]L?)?"/>
499 <RangeDetect attribute="String" context="#stay" char="&quot;" char1="&quot;"/>
500 <keyword attribute="SpecialTokens" context="#stay" String="specialtokens"/>
501 <IncludeRules context="CommentRules" />
502 <RegExpr attribute="Error" context="#pop" String=".+"/>
503 </context>
504
505 <!-- \u 4HexDigits -->
506 <context name="UnicodeShort" attribute="EscapeSequence" lineEndContext="#pop">
507 <RegExpr attribute="EscapeSequence" context="#pop" String="[\da-fA-F]{4}"/>
508 </context>
509 <!-- \U 8HexDigits -->
510 <context name="UnicodeLong" attribute="EscapeSequence" lineEndContext="#pop">
511 <RegExpr attribute="EscapeSequence" context="#pop" String="[\da-fA-F]{8}"/>
512 </context>
513 <!-- \& Alpha Alphanumerical+ ; -->
514 <context name="HTMLEntity" attribute="EscapeSequence" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
515 <RegExpr attribute="EscapeSequence" context="#pop" String="[a-zA-Z]\w+;"/>
516 </context>
517
518 <context name="ModuleName" attribute="Module Name" lineEndContext="#stay">
519 <DetectSpaces/>
520 <IncludeRules context="CommentRules" />
521 <RegExpr context="#pop" String="[^\s\w.:,=]" lookAhead="true"/>
522 </context>
523
524 <context name="Linkage" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
525 <DetectSpaces/>
526 <DetectChar attribute="Normal Text" context="Linkage2" char="("/>
527 <IncludeRules context="CommentRules" />
528 </context>
529 <context name="Linkage2" attribute="Normal Text" lineEndContext="#stay">
530 <DetectSpaces/>
531 <StringDetect attribute="Linkage Type" context="Linkage-C++" String="C++"/>
532 <StringDetect attribute="Linkage Type" context="#stay" String="Objective-C"/>
533 <keyword attribute="Linkage Type" context="#stay" String="ltypes"/>
534 <IncludeRules context="CommentRules" />
535 <!-- Fall-through rules, highlighting errors: -->
536 <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/>
537 <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/>
538 </context>
539 <context name="Linkage-C++" attribute="Normal Text" lineEndContext="#stay">
540 <DetectSpaces/>
541 <IncludeRules context="CommentRules" />
542 <DetectChar char="," attribute="Normal Text" context="Linkage-C++2"/>
543 <DetectChar char=")" attribute="Normal Text" context="#pop#pop#pop"/>
544 <RegExpr String="." attribute="Error" context="#stay"/>
545 </context>
546 <context name="Linkage-C++2" attribute="Normal Text" lineEndContext="#stay">
547 <DetectSpaces/>
548 <IncludeRules context="CommentRules" />
549 <DetectIdentifier attribute="Normal Text" context="#stay"/>
550 <DetectChar char="." attribute="Normal Text" context="#stay"/>
551 <DetectChar char=")" attribute="Normal Text" context="#pop#pop#pop"/>
552 <RegExpr String="." attribute="Error" context="#stay"/>
553 </context>
554
555 <context name="Version" attribute="Normal Text" lineEndContext="#stay">
556 <DetectSpaces/>
557 <DetectChar attribute="Normal Text" context="VersionSpec" char="="/>
558 <DetectChar attribute="Normal Text" context="VersionCond" char="("/>
559 <IncludeRules context="CommentRules" />
560 <!-- Fall-through rules, highlighting errors: -->
561 <RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/>
562 </context>
563 <context name="VersionSpec" attribute="Normal Text" lineEndContext="#stay">
564 <DetectSpaces/>
565 <DetectIdentifier attribute="Normal Text" context="#stay"/>
566 <RegExpr attribute="Integer" context="#stay" String="\d+[\d_]*(?:L[uU]?|[uU]L?)?"/>
567 <DetectChar char=";" attribute="Normal Text" context="#pop#pop"/>
568 <RegExpr String="." attribute="Error" context="#pop#pop"/>
569 </context>
570 <context name="VersionCond" attribute="Normal Text" lineEndContext="#stay">
571 <DetectSpaces/>
572 <keyword attribute="Version Type" context="#stay" String="vtypes"/>
573 <DetectIdentifier attribute="Normal Text" context="#stay"/>
574 <RegExpr attribute="Integer" context="#stay" String="\d+[\d_]*(?:L[uU]?|[uU]L?)?"/>
575 <IncludeRules context="CommentRules" />
576 <!-- Fall-through rules, highlighting errors: -->
577 <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/>
578 <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/>
579 </context>
580
581 <context name="Scope" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
582 <DetectSpaces/>
583 <DetectChar attribute="Normal Text" context="Scope2" char="("/>
584 <IncludeRules context="CommentRules" />
585 </context>
586 <context name="Scope2" attribute="Normal Text" lineEndContext="#stay">
587 <DetectSpaces/>
588 <keyword String="scope_keywords" attribute="Expression" context="#stay"/>
589 <IncludeRules context="CommentRules" />
590 <!-- Fall-through rules, highlighting errors: -->
591 <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/>
592 <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/>
593 </context>
594
595 <context name="Pragma" attribute="Pragma" lineEndContext="#stay">
596 <DetectSpaces/>
597 <DetectChar attribute="Normal Text" context="Pragma2" char="("/>
598 <IncludeRules context="CommentRules" />
599 <!-- Fall-through rules, highlighting errors: -->
600 <RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/>
601 </context>
602 <context name="Pragma2" attribute="Pragma" lineEndContext="#stay">
603 <DetectSpaces/>
604 <keyword attribute="Version Type" context="Pragma3" String="ptypes"/>
605 <DetectIdentifier attribute="Normal Text" context="Pragma3"/>
606 <IncludeRules context="CommentRules" />
607 <!-- Fall-through rules, highlighting errors: -->
608 <DetectChar char=")" attribute="Normal Text" context="#pop#pop"/>
609 <RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/>
610 </context>
611 <context name="Pragma3" attribute="Pragma" lineEndContext="#stay">
612 <DetectSpaces/>
613 <DetectChar char="," attribute="Normal Text" context="Pragma4"/>
614 <DetectChar char=")" attribute="Normal Text" context="#pop#pop#pop"/>
615 <RegExpr String="." attribute="Error" context="#pop#pop#pop"/>
616 </context>
617 <context name="Pragma4" attribute="Pragma" lineEndContext="#stay">
618 <DetectChar char="(" attribute="Normal Text" context="Parenthetical"/>
619 <DetectChar char=")" attribute="Normal Text" context="#pop#pop#pop#pop"/>
620 <IncludeRules context="normal" />
621 </context>
622 <context name="Parenthetical" attribute="Normal Text" lineEndContext="#stay">
623 <DetectChar char="(" attribute="Normal Text" context="Parenthetical"/>
624 <DetectChar char=")" attribute="Normal Text" context="#pop"/>
625 <IncludeRules context="normal" />
626 </context>
627
628 <!-- Strings -->
629 <!-- r"..." -->
630 <context name="RawString" attribute="RawString" lineEndContext="#stay">
631 <DetectChar attribute="RawString" context="#pop" char="&quot;"/>
632 </context>
633 <!-- `...` -->
634 <context name="BQString" attribute="BQString" lineEndContext="#stay">
635 <DetectChar attribute="BQString" context="#pop" char="`"/>
636 </context>
637 <!-- x"..." -->
638 <context name="HexString" attribute="HexString" lineEndContext="#stay">
639 <DetectChar attribute="HexString" context="#pop" char="&quot;"/>
640 <RegExpr attribute="Error" context="#stay" String="[^\sa-fA-F\d&quot;]+" />
641 </context>
642 <!-- '...' -->
643 <context name="CharLiteral" attribute="Char" lineEndContext="CharLiteralClosing" fallthrough="true" fallthroughContext="#pop">
644 <!-- Empty '' -->
645 <DetectChar attribute="Char" context="#pop" char="'"/>
646 <!-- \t \n \r etc. -->
647 <HlCStringChar attribute="EscapeSequence" context="CharLiteralClosing"/>
648 <!-- \u 4HexDigits | \U 8HexDigits | HTMLEntity -->
649 <RegExpr attribute="EscapeSequence" context="CharLiteralClosing" String="\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}|&amp;[a-zA-Z]\w+;)"/>
650 <!-- Invalid escape sequences -->
651 <RegExpr attribute="Error" context="CharLiteralClosing" String="\\."/>
652 <!-- Any character -->
653 <RegExpr attribute="Char" context="CharLiteralClosing" String="."/>
654 </context>
655 <!-- Anything other than a closing ' is now be an error -->
656 <context name="CharLiteralClosing" attribute="Error" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">
657 <DetectChar attribute="Char" context="#pop#pop" char="'"/>
658 </context>
659 <!-- "..." -->
660 <context name="String" attribute="String" lineEndContext="#stay">
661 <HlCStringChar attribute="EscapeSequence"/>
662 <Detect2Chars attribute="String" context="#pop" char="&quot;" char1="c"/>
663 <Detect2Chars attribute="String" context="#pop" char="&quot;" char1="w"/>
664 <Detect2Chars attribute="String" context="#pop" char="&quot;" char1="d"/>
665 <DetectChar attribute="String" context="#pop" char="&quot;"/>
666 <Detect2Chars attribute="EscapeSequence" context="UnicodeShort" char="\" char1="u"/>
667 <Detect2Chars attribute="EscapeSequence" context="UnicodeLong" char="\" char1="U"/>
668 <Detect2Chars attribute="EscapeSequence" context="HTMLEntity" char="\" char1="&amp;"/>
669 </context>
670 <!-- token strings: q{...} -->
671 <context name="TokenString" attribute="Normal Text" lineEndContext="#stay">
672 <DetectChar attribute="Token String Delimiter" context="#pop" char="}" />
673 <IncludeRules context="normal" />
674 </context>
675 <!-- delimited strings -->
676 <!-- q"IDENTIFIER...IDENTIFIER" -->
677 <context name="DelimStrHeredoc" attribute="Delimited String Content" lineEndContext="#stay">
678 <StringDetect attribute="Delimited String Delimiter" context="#pop" String="%1&quot;" dynamic="true" column="0" />
679 <StringDetect attribute="Error" context="#pop" String="%1" dynamic="true" column="0" />
680 </context>
681 <!-- q"[...]" -->
682 <context name="DelimStrBracket" attribute="Delimited String Content" lineEndContext="#stay">
683 <DetectChar attribute="Delimited String Content" context="DelimStrBracket2" char="[" />
684 <Detect2Chars attribute="Delimited String Delimiter" context="#pop" char="]" char1="&quot;" />
685 <DetectChar attribute="Error" context="#pop" char="]" />
686 </context>
687 <context name="DelimStrBracket2" attribute="Delimited String Content" lineEndContext="#stay">
688 <DetectChar attribute="Delimited String Content" context="DelimStrBracket2" char="[" />
689 <DetectChar attribute="Delimited String Content" context="#pop" char="]" />
690 </context>
691 <!-- q"(...)" -->
692 <context name="DelimStrParen" attribute="Delimited String Content" lineEndContext="#stay">
693 <DetectChar attribute="Delimited String Content" context="DelimStrParen2" char="(" />
694 <Detect2Chars attribute="Delimited String Delimiter" context="#pop" char=")" char1="&quot;" />
695 <DetectChar attribute="Error" context="#pop" char=")" />
696 </context>
697 <context name="DelimStrParen2" attribute="Delimited String Content" lineEndContext="#stay">
698 <DetectChar attribute="Delimited String Content" context="DelimStrParen2" char="(" />
699 <DetectChar attribute="Delimited String Content" context="#pop" char=")" />
700 </context>
701 <!-- q"<...>" -->
702 <context name="DelimStrLtGt" attribute="Delimited String Content" lineEndContext="#stay">
703 <DetectChar attribute="Delimited String Content" context="DelimStrLtGt2" char="&lt;" />
704 <Detect2Chars attribute="Delimited String Delimiter" context="#pop" char="&gt;" char1="&quot;" />
705 <DetectChar attribute="Error" context="#pop" char="&gt;" />
706 </context>
707 <context name="DelimStrLtGt2" attribute="Delimited String Content" lineEndContext="#stay">
708 <DetectChar attribute="Delimited String Content" context="DelimStrLtGt2" char="&lt;" />
709 <DetectChar attribute="Delimited String Content" context="#pop" char="&gt;" />
710 </context>
711 <!-- q"{...}" -->
712 <context name="DelimStrBrace" attribute="Delimited String Content" lineEndContext="#stay">
713 <DetectChar attribute="Delimited String Content" context="DelimStrBrace2" char="{" />
714 <Detect2Chars attribute="Delimited String Delimiter" context="#pop" char="}" char1="&quot;" />
715 <DetectChar attribute="Error" context="#pop" char="}" />
716 </context>
717 <context name="DelimStrBrace2" attribute="Delimited String Content" lineEndContext="#stay">
718 <DetectChar attribute="Delimited String Content" context="DelimStrBrace2" char="{" />
719 <DetectChar attribute="Delimited String Content" context="#pop" char="}" />
720 </context>
721 <!-- q"*...*" -->
722 <context name="DelimStrSimple" attribute="Delimited String Content" lineEndContext="#stay">
723 <StringDetect attribute="Delimited String Delimiter" context="#pop" String="%1&quot;" dynamic="true" />
724 <StringDetect attribute="Error" context="#pop" String="%1" dynamic="true" />
725 </context>
726
727 <!-- Comments -->
728 <context name="CommentRules" attribute="Normal Text" lineEndContext="#pop">
729 <IncludeRules context="DdocNormal" />
730 <Detect2Chars attribute="Comment" context="CommentLine" char="/" char1="/"/>
731 <Detect2Chars attribute="Comment" context="CommentBlock" char="/" char1="*" beginRegion="CommentBlock"/>
732 <Detect2Chars attribute="Comment" context="CommentNested" char="/" char1="+" beginRegion="CommentNested"/>
733 <!-- This context is only for including rules from. -->
734 </context>
735 <context name="Region Marker" attribute="Region Marker" lineEndContext="#pop">
736 </context>
737 <context name="CommentLine" attribute="Comment" lineEndContext="#pop">
738 <DetectSpaces />
739 <IncludeRules context="##Comments" />
740 </context>
741 <context name="CommentBlock" attribute="Comment" lineEndContext="#stay">
742 <DetectSpaces />
743 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="CommentBlock"/>
744 <IncludeRules context="##Comments" />
745 </context>
746 <context name="CommentNested" attribute="Comment" lineEndContext="#stay">
747 <DetectSpaces />
748 <Detect2Chars attribute="Comment" context="CommentNested" char="/" char1="+" beginRegion="CommentNested"/>
749 <Detect2Chars attribute="Comment" context="#pop" char="+" char1="/" endRegion="CommentNested"/>
750 <IncludeRules context="##Comments" />
751 </context>
752
753
754 <!-- Ddoc contexts -->
755 <context name="DdocNormal" attribute="Normal Text" lineEndContext="#stay">
756 <RegExpr attribute="Comment" context="DdocLine" String="/{3,}"/>
757 <RegExpr attribute="Comment" context="DdocBlock" String="/\*{2,}(?!/)" beginRegion="DdocBlock"/>
758 <RegExpr attribute="Comment" context="DdocNested" String="/\+{2,}(?!/)" beginRegion="DdocNested"/>
759 </context>
760
761 <context name="DdocLine" attribute="Ddoc" lineEndContext="#pop">
762 <DetectSpaces />
763 <DetectIdentifier attribute="Ddoc"/>
764 <Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" />
765 <RegExpr attribute="DdocSection" context="#stay" String="[\w_]+:(?:$|\s)" />
766 <IncludeRules context="##Comments" />
767 </context>
768
769 <context name="DdocBlock" attribute="Ddoc" lineEndContext="#stay">
770 <DetectSpaces />
771 <DetectIdentifier attribute="Ddoc"/>
772 <RegExpr attribute="Comment" context="#pop" String="\*+/" endRegion="DdocBlock"/>
773 <DetectChar attribute="Comment" context="#stay" char="*" firstNonSpace="true" />
774
775 <Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" />
776 <RegExpr attribute="DdocSection" context="#stay" String="[\w_]+:(?:$|\s)" />
777 <IncludeRules context="##Comments" />
778
779 <!-- Avoid matching this; do it this way since (^|\s)-* always matches .- and \s-* never
780 matches .- (spaces have already been matched); however -*($|\s) matches just fine.
781 Also can't use \b since - is not a word character. -->
782 <RegExpr attribute="Ddoc" context="#stay" String="[^-]-{3,}" />
783 <RegExpr attribute="Comment" context="DdocBlockCode" String="-{3,}(?:$|\s)" />
784 </context>
785
786 <context name="DdocNested" attribute="Ddoc" lineEndContext="#stay">
787 <DetectSpaces />
788 <DetectIdentifier attribute="Ddoc"/>
789 <!-- Ddoc recognises nested comments/ddoc, but ignores them as far as formatting is concerned. -->
790 <Detect2Chars attribute="Ddoc" context="DdocNested2" char="/" char1="+"/>
791 <RegExpr attribute="Comment" context="#pop" String="\++/" endRegion="DdocNested"/>
792 <DetectChar attribute="Comment" context="#stay" char="+" firstNonSpace="true" />
793
794 <Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" />
795 <RegExpr attribute="DdocSection" context="#stay" String="[\w_]+:(?:$|\s)" />
796 <IncludeRules context="##Comments" />
797
798 <!-- As above. -->
799 <RegExpr attribute="Ddoc" context="#stay" String="[^-]-{3,}" />
800 <RegExpr attribute="Comment" context="DdocNestedCode" String="-{3,}(?:$|\s)" />
801 </context>
802
803 <context name="DdocNested2" attribute="Ddoc" lineEndContext="#stay">
804 <DetectSpaces />
805 <DetectIdentifier attribute="Ddoc"/>
806 <!-- Identical to DdocNested except that nested comments don't receive any formatting -->
807 <RegExpr attribute="Ddoc" context="#pop" String="\++/"/>
808 <!-- The above rules should match before the unwanted rule in DdocNested -->
809 <IncludeRules context="DdocNested" />
810 </context>
811
812 <!-- When entering a macro: provides highlighting for first symbol (macro name) -->
813 <context name="DdocMacro" attribute="Error" lineEndContext="#stay">
814 <DetectSpaces attribute="Macro Text" /> <!-- avoid showing space as an error -->
815
816 <DetectChar attribute="Macros" context="#pop" char=")" /> <!-- early end of macro -->
817 <IncludeRules context="MacroRules" />
818
819 <!-- first symbol of macro -->
820 <DetectIdentifier attribute="Macros" context="DdocMacro2" />
821 </context>
822 <!-- For rest of macro -->
823 <context name="DdocMacro2" attribute="Macro Text" lineEndContext="#stay">
824 <DetectChar attribute="Macros" context="#pop#pop" char=")" /> <!-- end of macro -->
825 <IncludeRules context="MacroRules" />
826 </context>
827 <!-- For embedded brackets (yeah, extra work to ignore them) -->
828 <context name="DdocMacro3" attribute="Macro Text" lineEndContext="#stay">
829 <DetectChar attribute="Macro Text" context="#pop" char=")" /> <!-- end of embedded brackets -->
830 <IncludeRules context="MacroRules" />
831 </context>
832 <!-- Rules common to all macros -->
833 <context name="MacroRules" attribute="Macro Text" lineEndContext="#stay">
834 <Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" /> <!-- embedded -->
835 <DetectChar attribute="Macro Text" context="DdocMacro3" char="(" /> <!-- extra brackets -->
836
837 <DetectChar attribute="Comment" context="#stay" char="*" firstNonSpace="true" />
838 </context>
839
840 <context name="DdocBlockCode" attribute="DdocCode" lineEndContext="#stay">
841 <DetectSpaces />
842 <!-- See update 1.11 -->
843 <RegExpr attribute="Comment" context="#pop#pop" String="\*+/" endRegion="DdocBlock"/>
844 <DetectChar attribute="Comment" context="#stay" char="*" firstNonSpace="true" />
845 <!-- As above. -->
846 <RegExpr attribute="DdocCode" context="#stay" String="[^-]-{3,}" />
847 <RegExpr attribute="Comment" context="#pop" String="-{3,}(?:$|\s)" />
848 <IncludeRules context="##D" />
849 </context>
850 <context name="DdocNestedCode" attribute="DdocCode" lineEndContext="#stay">
851 <DetectSpaces />
852 <!-- See update 1.11 -->
853 <RegExpr attribute="Comment" context="#pop#pop" String="\++/" endRegion="DdocNested"/>
854 <DetectChar attribute="Comment" context="#stay" char="+" firstNonSpace="true" />
855 <!-- As above. -->
856 <RegExpr attribute="DdocCode" context="#stay" String="[^-]-{3,}" />
857 <RegExpr attribute="Comment" context="#pop" String="-{3,}(?:$|\s)" />
858 <IncludeRules context="##D" />
859 </context>
860 </contexts>
861 <itemDatas>
862 <itemData name="Normal Text" defStyleNum="dsNormal"/>
863 <itemData name="Symbol" defStyleNum="dsOperator"/>
864
865 <!-- keywords -->
866 <itemData name="Statement" defStyleNum="dsKeyword"/>
867 <itemData name="Expression" defStyleNum="dsAttribute" bold="1"/> <!-- #000080 -->
868 <itemData name="Declarator" defStyleNum="dsWarning" bold="1"/> <!-- #800000 -->
869 <itemData name="Template" defStyleNum="dsOthers" bold="1"/> <!-- #008000 -->
870
871 <itemData name="Attribute" defStyleNum="dsFunction" bold="1"/> <!-- #800080 -->
872 <itemData name="Deprecated" defStyleNum="dsFunction" bold="1" strikeOut="true"/> <!-- #800080 -->
873
874 <itemData name="Property" defStyleNum="dsDataType" bold="1"/> <!-- #000080 -->
875
876 <itemData name="Type" defStyleNum="dsDataType"/>
877 <itemData name="LibrarySymbols" defStyleNum="dsBuiltIn" italic="1"/>
878
879 <itemData name="UserKeywords" defStyleNum="dsDataType" italic="1"/>
880
881 <!-- module, import -->
882 <itemData name="Module" defStyleNum="dsPreprocessor" bold="1"/> <!-- #008000 -->
883 <itemData name="Module Name" defStyleNum="dsImport"/> <!-- #008000 -->
884
885 <!-- pragma, special tokens -->
886 <itemData name="SpecialTokens" defStyleNum="dsOthers" bold="1"/> <!-- #00aa00 -->
887 <itemData name="Pragma" defStyleNum="dsOthers" bold="1"/> <!-- #00aa00 -->
888
889 <!-- version, extern -->
890 <itemData name="Version" defStyleNum="dsDecVal"/> <!-- #808000 -->
891 <itemData name="Version Type" defStyleNum="dsNormal" bold="1"/>
892 <itemData name="Linkage" defStyleNum="dsInformation" bold="1"/> <!-- #808000 -->
893 <itemData name="Linkage Type" defStyleNum="dsNormal" bold="1"/>
894
895 <itemData name="Tests" defStyleNum="dsFunction" bold="1"/> <!-- #ff00ff -->
896
897 <itemData name="Comment" defStyleNum="dsComment"/>
898 <itemData name="Region Marker" defStyleNum="dsRegionMarker" />
899
900 <itemData name="Error" defStyleNum="dsError"/>
901
902 <!-- literals -->
903 <itemData name="Integer" defStyleNum="dsDecVal"/>
904 <itemData name="Binary" defStyleNum="dsBaseN"/>
905 <itemData name="Octal" defStyleNum="dsBaseN"/>
906 <itemData name="Hex" defStyleNum="dsBaseN"/>
907 <itemData name="Float" defStyleNum="dsFloat"/>
908
909 <itemData name="EscapeSequence" defStyleNum="dsSpecialChar"/>
910 <itemData name="String" defStyleNum="dsString"/>
911 <itemData name="Char" defStyleNum="dsChar"/>
912 <itemData name="RawString" defStyleNum="dsVerbatimString"/>
913 <itemData name="BQString" defStyleNum="dsSpecialString"/>
914 <itemData name="HexString" defStyleNum="dsSpecialString"/>
915 <itemData name="Token String Delimiter" defStyleNum="dsKeyword"/>
916 <itemData name="Delimited String Content" defStyleNum="dsVerbatimString"/>
917 <itemData name="Delimited String Delimiter" defStyleNum="dsKeyword"/>
918
919 <!-- Ddoc specific -->
920 <itemData name="Macros" defStyleNum="dsSpecialChar" bold="1" italic="0" /> <!-- #bf5fbf -->
921 <itemData name="Macro Text" defStyleNum="dsAttribute" bold="0" italic="0" /> <!-- #bf7fff -->
922 <itemData name="Ddoc" defStyleNum="dsDocumentation" /> <!-- #7f7fff -->
923 <itemData name="DdocSection" defStyleNum="dsAnnotation" bold="1" /> <!-- #7f7fff -->
924 <itemData name="DdocCode" defStyleNum="dsNormal" italic="1" />
925 </itemDatas>
926 </highlighting>
927 <general>
928 <comments>
929 <comment name="singleLine" start="//" position="afterwhitespace"/>
930 <comment name="multiLine" start="/+" end="+/" region="CommentNested"/>
931 </comments>
932 <keywords casesensitive="true"/>
933 </general>
934 </language>
935 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->