Debian Codegraph @

data/syntax/mediawiki.xml

raw
1 <?xml version = '1.0' encoding = 'UTF-8'?>
2 <!DOCTYPE language [
3 <!ENTITY tab "&#9;">
4 <!ENTITY url "(http:|https:|ftp:|mailto:)[^]| ]*(?=$|[]|\s])">
5 <!ENTITY htmlTagName "(?![0-9])[\w_:][\w.:_-]*">
6 <!ENTITY htmlEntity "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&htmlTagName;);">
7 <!ENTITY wikiLinkWithDescription "\[\[[^]|]*\|[^]]*\]\]">
8 <!ENTITY wikiLinkWithoutDescription "\[\[[^]|]*\]\]">
9 ]>
10 <language name="MediaWiki" section="Markup" version="13" kateversion="5.53" extensions="*.mediawiki" mimetype="" license="FDL" >
11 <highlighting>
12 <contexts>
13 <context attribute="Normal" lineEndContext="#stay" name="normal" >
14 <StringDetect String="&lt;!--" context="comment" attribute="Comment" beginRegion="comment" />
15 <RegExpr String="^[=]{5,5}(?!=)" context="Section5" attribute="Section" column="0" />
16 <RegExpr String="^[=]{4,4}(?!=)" context="Section4" attribute="Section" column="0" />
17 <RegExpr String="^[=]{3,3}(?!=)" context="Section3" attribute="Section" column="0" />
18 <RegExpr String="^[=]{2,2}(?!=)" context="Section2" attribute="Section" column="0" />
19 <StringDetect String="~~~~" attribute="WikiTag" context="#stay" />
20 <StringDetect String="~~~" attribute="WikiTag" context="#stay" />
21 <DetectChar char=";" attribute="WikiTag" context="DefinitionListHeader" column="0" />
22 <IncludeRules context="FindListItem" />
23 <IncludeRules context="FindUrl" />
24 <IncludeRules context="FindTextDecorations" />
25 <IncludeRules context="FindTable" />
26 <StringDetect String="{{{" context="TemplateParameter" attribute="WikiTag" />
27 <IncludeRules context="FindTemplate" />
28 <IncludeRules context="FindWikiLink" />
29 <IncludeRules context="FindHtmlEntities" />
30 <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="WikiTag" />
31 <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HtmlTag" />
32 <IncludeRules context="FindSyntaxHighlightingHtmlElement" />
33 <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HtmlTag" context="#stay" />
34 <DetectSpaces context="Unformatted" column="0" />
35 </context>
36 <context name="TableHeader" attribute="Normal" lineEndContext="TableContent" >
37 <Detect2Chars char="{" char1="|" attribute="WikiTag" beginRegion="table" />
38 <IncludeRules context="FindHtmlStartTagAttributes" />
39 </context>
40 <context name="TableContent" attribute="Normal" lineEndContext="#stay">
41 <StringDetect String="&lt;!--" context="comment" attribute="Comment" beginRegion="comment" />
42 <RegExpr String="^[=]{5,5}(?!=)" context="Section5" attribute="Section" column="0" />
43 <RegExpr String="^[=]{4,4}(?!=)" context="Section4" attribute="Section" column="0" />
44 <RegExpr String="^[=]{3,3}(?!=)" context="Section3" attribute="Section" column="0" />
45 <RegExpr String="^[=]{2,2}(?!=)" context="Section2" attribute="Section" column="0" />
46 <DetectChar char=";" attribute="WikiTag" context="DefinitionListHeader" column="0" />
47 <IncludeRules context="FindListItem" />
48 <IncludeRules context="FindUrl" />
49 <IncludeRules context="FindTextDecorations" />
50 <IncludeRules context="FindTable" />
51 <Detect2Chars char="|" char1="}" column="0" attribute="WikiTag" context="#pop#pop" endRegion="table" />
52 <Detect2Chars char="|" char1="-" column="0" attribute="WikiTag" />
53 <DetectChar char="|" attribute="WikiTag" context="#stay"/>
54 <StringDetect String="{{{" context="TemplateParameter" attribute="WikiTag" />
55 <IncludeRules context="FindTemplate" />
56 <IncludeRules context="FindWikiLink" />
57 <IncludeRules context="FindHtmlEntities" />
58 <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="WikiTag" />
59 <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HtmlTag" />
60 <IncludeRules context="FindSyntaxHighlightingHtmlElement" />
61 <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HtmlTag" context="#stay" />
62 <AnyChar String="&tab; " context="Unformatted" column="0" />
63 <StringDetect String="~~~~" attribute="WikiTag" context="#stay" />
64 <StringDetect String="~~~" attribute="WikiTag" context="#stay" />
65 <RegExpr String="[-]{4,}" attribute="WikiTag" context="#stay" />
66 <DetectChar char="!" attribute="WikiTag" context="#stay" column="0" />
67 </context>
68 <context attribute="Section" lineEndContext="#pop" name="Section5" >
69 <StringDetect String="&lt;!--" context="comment" attribute="Comment" beginRegion="comment" />
70 <StringDetect String="~~~~" attribute="WikiTag" context="#stay" />
71 <StringDetect String="~~~" attribute="WikiTag" context="#stay" />
72 <IncludeRules context="FindUrl" />
73 <IncludeRules context="FindTextDecorationsInHeader" />
74 <StringDetect String="{{{" context="TemplateParameter" attribute="WikiTag" />
75 <IncludeRules context="FindTemplate" />
76 <IncludeRules context="FindWikiLink" />
77 <IncludeRules context="FindHtmlEntities" />
78 <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="HtmlTag" />
79 <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HtmlTag" />
80 <IncludeRules context="FindSyntaxHighlightingHtmlElement" />
81 <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HtmlTag" context="#stay" />
82 <RegExpr String="={5,5} *$" context="#pop" attribute="Section" />
83 <RegExpr String="={6,} *$|={1,4} *$|=*[^=]+$" context="#pop" attribute="Normal" />
84 </context>
85 <context attribute="Section" lineEndContext="#pop" name="Section4" >
86 <StringDetect String="&lt;!--" context="comment" attribute="Comment" beginRegion="comment" />
87 <StringDetect String="~~~~" attribute="WikiTag" context="#stay" />
88 <StringDetect String="~~~" attribute="WikiTag" context="#stay" />
89 <IncludeRules context="FindUrl" />
90 <IncludeRules context="FindTextDecorationsInHeader" />
91 <StringDetect String="{{{" context="TemplateParameter" attribute="WikiTag" />
92 <IncludeRules context="FindTemplate" />
93 <IncludeRules context="FindWikiLink" />
94 <IncludeRules context="FindHtmlEntities" />
95 <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="HtmlTag" />
96 <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HtmlTag" />
97 <IncludeRules context="FindSyntaxHighlightingHtmlElement" />
98 <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HtmlTag" context="#stay" />
99 <RegExpr String="={4,4} *$" context="#pop" attribute="Section" />
100 <RegExpr String="={5,} *$|={1,3} *$|=*[^=]+$" context="#pop" attribute="Normal" />
101 </context>
102 <context attribute="Section" lineEndContext="#pop" name="Section3" >
103 <StringDetect String="&lt;!--" context="comment" attribute="Comment" beginRegion="comment" />
104 <StringDetect String="~~~~" attribute="WikiTag" context="#stay" />
105 <StringDetect String="~~~" attribute="WikiTag" context="#stay" />
106 <IncludeRules context="FindUrl" />
107 <IncludeRules context="FindTextDecorationsInHeader" />
108 <StringDetect String="{{{" context="TemplateParameter" attribute="WikiTag" />
109 <IncludeRules context="FindTemplate" />
110 <IncludeRules context="FindWikiLink" />
111 <IncludeRules context="FindHtmlEntities" />
112 <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="HtmlTag" />
113 <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HtmlTag" />
114 <IncludeRules context="FindSyntaxHighlightingHtmlElement" />
115 <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HtmlTag" context="#stay" />
116 <RegExpr String="={3,3} *$" context="#pop" attribute="Section" />
117 <RegExpr String="={4,} *$|={1,2} *$|=*[^=]+$" context="#pop" attribute="Normal" />
118 </context>
119 <context attribute="Section" lineEndContext="#pop" name="Section2" >
120 <StringDetect String="&lt;!--" context="comment" attribute="Comment" beginRegion="comment" />
121 <StringDetect String="~~~~" attribute="WikiTag" context="#stay" />
122 <StringDetect String="~~~" attribute="WikiTag" context="#stay" />
123 <IncludeRules context="FindUrl" />
124 <IncludeRules context="FindTextDecorationsInHeader" />
125 <StringDetect String="{{{" context="TemplateParameter" attribute="WikiTag" />
126 <IncludeRules context="FindTemplate" />
127 <IncludeRules context="FindWikiLink" />
128 <IncludeRules context="FindHtmlEntities" />
129 <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="HtmlTag" />
130 <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HtmlTag" />
131 <IncludeRules context="FindSyntaxHighlightingHtmlElement" />
132 <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HtmlTag" context="#stay" />
133 <RegExpr String="={2,2} *$" context="#pop" attribute="Section" />
134 <RegExpr String="={3,} *$|={1,1} *$|=*[^=]+$" context="#pop" attribute="Normal" />
135 </context>
136 <context attribute="Comment" lineEndContext="#stay" name="comment" >
137 <StringDetect String="--&gt;" context="#pop" attribute="Comment" endRegion="comment" />
138 <DetectSpaces />
139 <IncludeRules context="##Comments" />
140 </context>
141 <context attribute="Link" lineEndContext="#stay" name="DelimitedURL" >
142 <DetectChar char="]" context="#pop" attribute="WikiTag" />
143 <DetectChar char="[" context="#stay" attribute="WikiTag" />
144 <RegExpr String="&url;" context="DelimitedUrlLink" lookAhead="true" />
145 <DetectChar char=" " context="URLTag" attribute="WikiTag" />
146 </context>
147 <context attribute="Link" lineEndContext="#stay" name="DelimitedUrlLink" >
148 <IncludeRules context="FindTemplate" />
149 <AnyChar String=" ]" context="#pop" lookAhead="true" />
150 </context>
151
152 <context attribute="Link" lineEndContext="#pop" name="LooseURL" >
153 <IncludeRules context="FindTemplate" />
154 <DetectChar char=" " context="#pop" attribute="WikiTag" />
155 </context>
156 <context attribute="Link" lineEndContext="#pop" name="LooseURLWithinTemplate" >
157 <IncludeRules context="FindTemplate" />
158 <Detect2Chars char="}" char1="}" context="#pop" lookAhead="true" />
159 <DetectChar char=" " context="#pop" attribute="WikiTag" />
160 </context>
161
162 <context attribute="Normal" lineEndContext="#stay" name="URLTag" >
163 <IncludeRules context="FindTextDecorations" />
164 <IncludeRules context="FindTemplate" />
165 <DetectChar char="]" context="#pop" lookAhead="true" />
166 </context>
167
168 <context name="WikiLinkWithoutDescriptionRules" attribute="Normal" lineEndContext="#stay" >
169 <IncludeRules context="FindTemplate" />
170 <IncludeRules context="FindHtmlEntities" />
171 <Detect2Chars char="[" char1="[" attribute="WikiTag" />
172 <Detect2Chars char="]" char1="]" context="#pop" attribute="WikiTag" />
173 </context>
174 <context name="WikiLinkWithDescriptionRules" attribute="Normal" lineEndContext="#stay" >
175 <IncludeRules context="WikiLinkWithoutDescriptionRules" />
176 <DetectChar char="#" attribute="WikiTag" />
177 </context>
178 <context name="WikiLink" attribute="Link" lineEndContext="#stay" >
179 <IncludeRules context="WikiLinkWithDescriptionRules" />
180 <DetectChar char="|" attribute="WikiTag" context="WikiLinkDescription" />
181 </context>
182 <context name="WikiLinkBoldWithDescription" attribute="Link" lineEndContext="#stay" >
183 <IncludeRules context="WikiLinkWithDescriptionRules" />
184 <DetectChar char="|" attribute="WikiTag" context="WikiLinkDescriptionBold" />
185 </context>
186 <context name="WikiLinkBoldWithoutDescription" attribute="LinkBold" lineEndContext="#stay" >
187 <IncludeRules context="WikiLinkWithoutDescriptionRules" />
188 <DetectChar char="#" attribute="WikiTagBold" />
189 </context>
190 <context name="WikiLinkItalicWithDescription" attribute="Link" lineEndContext="#stay" >
191 <IncludeRules context="WikiLinkWithDescriptionRules" />
192 <DetectChar char="|" attribute="WikiTag" context="WikiLinkDescriptionItalic" />
193 </context>
194 <context name="WikiLinkItalicWithoutDescription" attribute="LinkItalic" lineEndContext="#stay" >
195 <IncludeRules context="WikiLinkWithoutDescriptionRules" />
196 <DetectChar char="#" attribute="WikiTagItalic" />
197 </context>
198 <context name="WikiLinkUnderlinedWithDescription" attribute="Link" lineEndContext="#stay" >
199 <IncludeRules context="WikiLinkWithDescriptionRules" />
200 <DetectChar char="|" attribute="WikiTag" context="WikiLinkDescriptionUnderlined" />
201 </context>
202 <context name="WikiLinkUnderlinedWithoutDescription" attribute="LinkUnderlined" lineEndContext="#stay" >
203 <IncludeRules context="WikiLinkWithoutDescriptionRules" />
204 <DetectChar char="#" attribute="WikiTagUnderlined" />
205 </context>
206 <context name="WikiLinkBoldItalicWithDescription" attribute="Link" lineEndContext="#stay" >
207 <IncludeRules context="WikiLinkWithDescriptionRules" />
208 <DetectChar char="|" attribute="WikiTag" context="WikiLinkDescriptionBoldItalic" />
209 </context>
210 <context name="WikiLinkBoldItalicWithoutDescription" attribute="LinkBoldItalic" lineEndContext="#stay" >
211 <IncludeRules context="WikiLinkWithoutDescriptionRules" />
212 <DetectChar char="#" attribute="WikiTagBoldItalic" />
213 </context>
214 <context name="WikiLinkBoldUnderlinedWithDescription" attribute="Link" lineEndContext="#stay" >
215 <IncludeRules context="WikiLinkWithDescriptionRules" />
216 <DetectChar char="|" attribute="WikiTag" context="WikiLinkDescriptionBoldUnderlined" />
217 </context>
218 <context name="WikiLinkBoldUnderlinedWithoutDescription" attribute="LinkBoldUnderlined" lineEndContext="#stay" >
219 <IncludeRules context="WikiLinkWithoutDescriptionRules" />
220 <DetectChar char="#" attribute="WikiTagBoldUnderlined" />
221 </context>
222 <context name="WikiLinkItalicUnderlinedWithDescription" attribute="Link" lineEndContext="#stay" >
223 <IncludeRules context="WikiLinkWithDescriptionRules" />
224 <DetectChar char="|" attribute="WikiTag" context="WikiLinkDescriptionItalicUnderlined" />
225 </context>
226 <context name="WikiLinkItalicUnderlinedWithoutDescription" attribute="LinkItalicUnderlined" lineEndContext="#stay" >
227 <IncludeRules context="WikiLinkWithoutDescriptionRules" />
228 <DetectChar char="#" attribute="WikiTagItalicUnderlined" />
229 </context>
230 <context name="WikiLinkBoldItalicUnderlinedWithDescription" attribute="Link" lineEndContext="#stay" >
231 <IncludeRules context="WikiLinkWithDescriptionRules" />
232 <DetectChar char="|" attribute="WikiTag" context="WikiLinkDescriptionBoldItalicUnderlined" />
233 </context>
234 <context name="WikiLinkBoldItalicUnderlinedWithoutDescription" attribute="LinkBoldItalicUnderlined" lineEndContext="#stay" >
235 <DetectChar char="#" attribute="WikiTagBoldItalicUnderlined" />
236 <IncludeRules context="WikiLinkWithoutDescriptionRules" />
237 </context>
238
239 <context name="WikiLinkDescriptionRules" attribute="Normal" lineEndContext="#stay">
240 <IncludeRules context="FindTemplate" />
241 <IncludeRules context="FindHtmlEntities" />
242 <Detect2Chars char="]" char1="]" context="#pop" attribute="WikiTag" lookAhead="true" />
243 </context>
244 <context name="WikiLinkDescription" attribute="Normal" lineEndContext="#stay">
245 <IncludeRules context="WikiLinkDescriptionRules" />
246 <IncludeRules context="FindTextDecorations" />
247 </context>
248 <context name="WikiLinkDescriptionBold" attribute="Bold" lineEndContext="#stay" >
249 <IncludeRules context="WikiLinkDescriptionRules" />
250 <Detect2Chars char="'" char1="'" context="BoldItalic" attribute="WikiTag" />
251 <RegExpr String="&lt;u *&gt;" attribute="HtmlTag" context="BoldUnderlined" />
252 </context>
253 <context name="WikiLinkDescriptionItalic" attribute="Italic" lineEndContext="#stay" >
254 <IncludeRules context="WikiLinkDescriptionRules" />
255 <StringDetect String="'''" attribute="WikiTag" context="ItalicBold" />
256 <RegExpr String="&lt;u *&gt;" attribute="HtmlTag" context="ItalicUnderlined" />
257 </context>
258 <context name="WikiLinkDescriptionUnderlined" attribute="Underlined" lineEndContext="#stay" >
259 <IncludeRules context="WikiLinkDescriptionRules" />
260 <StringDetect String="'''" context="UnderlinedBold" attribute="WikiTag" />
261 <Detect2Chars char="'" char1="'" context="UnderlinedItalic" attribute="WikiTag" />
262 </context>
263 <context name="WikiLinkDescriptionBoldItalic" attribute="BoldItalic" lineEndContext="#stay" >
264 <IncludeRules context="WikiLinkDescriptionRules" />
265 <RegExpr String="&lt;u *&gt;" attribute="HtmlTag" context="BoldItalicUnderlined" />
266 </context>
267 <context name="WikiLinkDescriptionBoldUnderlined" attribute="BoldUnderlined" lineEndContext="#stay" >
268 <IncludeRules context="WikiLinkDescriptionRules" />
269 <Detect2Chars char="'" char1="'" context="BoldUnderlinedItalic" attribute="WikiTag" />
270 </context>
271 <context name="WikiLinkDescriptionItalicUnderlined" attribute="ItalicUnderlined" lineEndContext="#stay" >
272 <IncludeRules context="WikiLinkDescriptionRules" />
273 <StringDetect String="'''" context="ItalicUnderlinedBold" attribute="WikiTag" />
274 </context>
275 <context name="WikiLinkDescriptionBoldItalicUnderlined" attribute="BoldItalicUnderlined" lineEndContext="#stay" >
276 <IncludeRules context="WikiLinkDescriptionRules" />
277 </context>
278
279 <context attribute="TemplateName" lineEndContext="#stay" name="Template" >
280 <DetectChar char="|" context="TemplateParameterSlot" attribute="WikiTag" />
281 <Detect2Chars char="}" char1="}" context="#pop" attribute="WikiTag" endRegion="template" />
282 </context>
283 <context attribute="Normal" lineEndContext="#stay" name="TemplateParameterSlot" >
284 <Detect2Chars char="}" char1="}" context="#pop" attribute="WikiTag" lookAhead="true" />
285 <StringDetect String="&lt;!--" context="comment" attribute="Comment" beginRegion="comment" />
286 <StringDetect String="~~~~" attribute="WikiTag" context="#stay" />
287 <StringDetect String="~~~" attribute="WikiTag" context="#stay" />
288 <IncludeRules context="FindListItem" />
289 <IncludeRules context="FindUrlWithinTemplate" />
290 <IncludeRules context="FindTextDecorations" />
291 <StringDetect String="{{{" context="TemplateParameter" attribute="WikiTag" />
292 <IncludeRules context="FindTemplate" />
293 <IncludeRules context="FindWikiLink" />
294 <IncludeRules context="FindHtmlEntities" />
295 <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="HtmlTag" />
296 <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HtmlTag" />
297 <IncludeRules context="FindSyntaxHighlightingHtmlElement" />
298 <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HtmlTag" context="#stay" />
299 <DetectChar char="|" context="#pop" attribute="WikiTag" lookAhead="true" />
300 <RegExpr String="[^{}|=]+(?=[=])" attribute="Parameter" context="TemplateParameterSlotEqual" />
301 </context>
302 <context attribute="Normal" lineEndContext="#stay" name="TemplateParameterSlotEqual" >
303 <Detect2Chars char="}" char1="}" context="#pop" attribute="WikiTag" lookAhead="true" />
304 <DetectChar char="|" context="#pop" attribute="WikiTag" lookAhead="true" />
305 <DetectChar char="=" context="TemplateParameterSlotValue" attribute="WikiTag" />
306 </context>
307 <context attribute="Normal" lineEndContext="#stay" name="TemplateParameterSlotValue" >
308 <StringDetect String="&lt;!--" context="comment" attribute="Comment" beginRegion="comment" />
309 <StringDetect String="~~~~" attribute="WikiTag" context="#stay" />
310 <StringDetect String="~~~" attribute="WikiTag" context="#stay" />
311 <IncludeRules context="FindListItem" />
312 <IncludeRules context="FindUrlWithinTemplate" />
313 <IncludeRules context="FindTextDecorations" />
314 <StringDetect String="{{{" context="TemplateParameter" attribute="WikiTag" />
315 <IncludeRules context="FindTemplate" />
316 <IncludeRules context="FindWikiLink" />
317 <IncludeRules context="FindHtmlEntities" />
318 <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="HtmlTag" />
319 <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HtmlTag" />
320 <IncludeRules context="FindSyntaxHighlightingHtmlElement" />
321 <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HtmlTag" context="#stay" />
322 <Detect2Chars char="}" char1="}" context="#pop" attribute="WikiTag" lookAhead="true" />
323 <DetectChar char="|" context="#pop" attribute="WikiTag" lookAhead="true" />
324 </context>
325 <context attribute="Parameter" lineEndContext="#stay" name="TemplateParameter" >
326 <StringDetect String="}}}" context="#pop" attribute="WikiTag" />
327 </context>
328 <context attribute="NoWiki" lineEndContext="#stay" name="NoWiki" >
329 <RegExpr String="&lt;!--[^-]*--&gt;" attribute="NoWiki" />
330 <StringDetect String="&lt;/nowiki&gt;" context="#pop" attribute="HtmlTag" />
331 <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HtmlTag" context="#stay" />
332 <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HtmlTag" />
333 </context>
334 <context attribute="Unformatted" lineEndContext="#pop" name="Unformatted" />
335 <context attribute="NoWiki" lineEndContext="#stay" name="Pre" >
336 <StringDetect String="&lt;/pre&gt;" context="#pop" attribute="HtmlTag" />
337 </context>
338
339
340
341 <!-- <source> and <syntaxhighlight> tags. -->
342
343 <context name="SourceStartTag" attribute="Normal" lineEndContext="#stay">
344 <RegExpr String="(^|\s+)lang\=(&quot;javascript&quot;|&apos;javascript&apos;)" context="JavaScriptSourceStartTag" lookAhead="true" />
345 <DetectChar attribute="HtmlTag" context="UnsupportedLanguageSourceStartTag" char="&gt;" lookAhead="true" />
346 <IncludeRules context="FindHtmlStartTagAttributes" />
347 </context>
348 <context name="SyntaxHighlightStartTag" attribute="Normal" lineEndContext="#stay">
349 <RegExpr String="(^|\s+)lang\=(&quot;javascript&quot;|&apos;javascript&apos;)" context="JavaScriptSyntaxHighlightStartTag" lookAhead="true" />
350 <DetectChar attribute="HtmlTag" context="UnsupportedLanguageSyntaxHighlightStartTag" char="&gt;" lookAhead="true" />
351 <IncludeRules context="FindHtmlStartTagAttributes" />
352 </context>
353
354
355 <context name="UnsupportedLanguageSourceStartTag" attribute="Normal" lineEndContext="#stay">
356 <DetectChar attribute="HtmlTag" context="UnsupportedLanguageSourceContent" char="&gt;" />
357 <IncludeRules context="FindHtmlStartTagAttributes" />
358 </context>
359 <context name="UnsupportedLanguageSyntaxHighlightStartTag" attribute="Normal" lineEndContext="#stay">
360 <DetectChar attribute="HtmlTag" context="UnsupportedLanguageSyntaxHighlightContent" char="&gt;" />
361 <IncludeRules context="FindHtmlStartTagAttributes" />
362 </context>
363
364 <context name="JavaScriptSourceStartTag" attribute="Normal" lineEndContext="#stay">
365 <DetectChar attribute="HtmlTag" context="JavaScriptSourceContent" char="&gt;" />
366 <IncludeRules context="FindHtmlStartTagAttributes" />
367 </context>
368 <context name="JavaScriptSyntaxHighlightStartTag" attribute="Normal" lineEndContext="#stay">
369 <DetectChar attribute="HtmlTag" context="JavaScriptSyntaxHighlightContent" char="&gt;" />
370 <IncludeRules context="FindHtmlStartTagAttributes" />
371 </context>
372
373
374 <context name="UnsupportedLanguageSourceContent" attribute="NoWiki" lineEndContext="#stay">
375 <IncludeRules context="SourceEnd" />
376 </context>
377 <context name="UnsupportedLanguageSyntaxHighlightContent" attribute="NoWiki" lineEndContext="#stay">
378 <IncludeRules context="SyntaxHighlightEnd" />
379 </context>
380
381 <context name="JavaScriptSourceContent" attribute="NoWiki" lineEndContext="#stay">
382 <IncludeRules context="SourceEnd" />
383 <IncludeRules context="Normal##JavaScript" />
384 </context>
385 <context name="JavaScriptSyntaxHighlightContent" attribute="NoWiki" lineEndContext="#stay">
386 <StringDetect String="&lt;/syntaxhighlight&gt;" context="#pop#pop#pop" attribute="HtmlTag" />
387 <IncludeRules context="SyntaxHighlightEnd" />
388 <IncludeRules context="Normal##JavaScript" />
389 </context>
390
391
392 <context name="SourceEnd" attribute="Normal" lineEndContext="#stay">
393 <StringDetect String="&lt;/source&gt;" context="#pop#pop#pop" attribute="HtmlTag" />
394 </context>
395 <context name="SyntaxHighlightEnd" attribute="Normal" lineEndContext="#stay">
396 <StringDetect String="&lt;/syntaxhighlight&gt;" context="#pop#pop#pop" attribute="HtmlTag" />
397 </context>
398
399
400 <context name="HtmlAttribute" attribute="Normal" lineEndContext="#stay">
401 <DetectChar attribute="HtmlAttribute" context="HtmlValue" char="=" />
402 <RegExpr attribute="Error" context="#stay" String="\S" />
403 </context>
404 <context name="HtmlValue" attribute="Normal" lineEndContext="#stay">
405 <DetectChar attribute="HtmlValue" context="ValueWithDoubleQuotes" char="&quot;" />
406 <DetectChar attribute="HtmlValue" context="ValueWithSingleQuotes" char="&apos;" />
407 <RegExpr attribute="Error" context="#stay" String="\S" />
408 </context>
409 <context name="ValueWithDoubleQuotes" attribute="HtmlValue" lineEndContext="#stay">
410 <DetectChar attribute="HtmlValue" context="#pop#pop#pop" char="&quot;" />
411 <IncludeRules context="FindHtmlEntities" />
412 </context>
413 <context name="ValueWithSingleQuotes" attribute="HtmlValue" lineEndContext="#stay">
414 <DetectChar attribute="HtmlValue" context="#pop#pop#pop" char="&apos;" />
415 <IncludeRules context="FindHtmlEntities" />
416 </context>
417
418
419
420 <context attribute="DefinitionListHeader" lineEndContext="#pop" name="DefinitionListHeader" >
421 <DetectChar char=":" context="#pop" attribute="WikiTag" />
422 </context>
423 <context attribute="Bold" lineEndContext="#pop" name="Bold" >
424 <IncludeRules context="FindTemplate" />
425 <StringDetect String="'''" context="#pop" attribute="WikiTag" />
426 <Detect2Chars char="'" char1="'" context="BoldItalic" attribute="WikiTag" />
427 <RegExpr String="&lt;u *&gt;" attribute="HtmlTag" context="BoldUnderlined" />
428 <IncludeRules context="FindWikiLinkBeingBold" />
429 </context>
430 <context attribute="Italic" lineEndContext="#pop" name="Italic" >
431 <IncludeRules context="FindTemplate" />
432 <StringDetect String="'''" attribute="WikiTag" context="ItalicBold" />
433 <Detect2Chars char="'" char1="'" context="#pop" attribute="WikiTag" />
434 <RegExpr String="&lt;u *&gt;" attribute="HtmlTag" context="ItalicUnderlined" />
435 <IncludeRules context="FindWikiLinkBeingItalic" />
436 </context>
437 <context attribute="Underlined" name="Underlined" lineEndContext="#stay" >
438 <IncludeRules context="FindTemplate" />
439 <StringDetect String="'''" context="UnderlinedBold" attribute="WikiTag" />
440 <Detect2Chars char="'" char1="'" context="UnderlinedItalic" attribute="WikiTag" />
441 <RegExpr String="&lt;/u *&gt;" context="#pop" attribute="HtmlTag" />
442 <IncludeRules context="FindWikiLinkBeingUnderlined" />
443 </context>
444 <context name="BoldItalic" attribute="BoldItalic" lineEndContext="#pop" >
445 <IncludeRules context="FindTemplate" />
446 <Detect2Chars char="'" char1="'" context="#pop" attribute="WikiTag" />
447 <RegExpr String="&lt;u *&gt;" attribute="HtmlTag" context="BoldItalicUnderlined" />
448 <IncludeRules context="FindWikiLinkBeingBoldItalic" />
449 </context>
450 <context name="ItalicBold" attribute="BoldItalic" lineEndContext="#pop" >
451 <IncludeRules context="FindTemplate" />
452 <StringDetect String="'''" context="#pop" attribute="WikiTag" />
453 <RegExpr String="&lt;u *&gt;" attribute="HtmlTag" context="BoldItalicUnderlined" />
454 <IncludeRules context="FindWikiLinkBeingBoldItalic" />
455 </context>
456 <context name="BoldUnderlined" attribute="BoldUnderlined" lineEndContext="#pop" >
457 <IncludeRules context="FindTemplate" />
458 <RegExpr String="&lt;/u *&gt;" context="#pop" attribute="HtmlTag" />
459 <Detect2Chars char="'" char1="'" context="BoldUnderlinedItalic" attribute="WikiTag" />
460 <IncludeRules context="FindWikiLinkBeingBoldUnderlined" />
461 </context>
462 <context name="UnderlinedBold" attribute="BoldUnderlined" lineEndContext="#pop" >
463 <IncludeRules context="FindTemplate" />
464 <StringDetect String="'''" context="#pop" attribute="WikiTag" />
465 <Detect2Chars char="'" char1="'" context="BoldUnderlinedItalic" attribute="WikiTag" />
466 <IncludeRules context="FindWikiLinkBeingBoldUnderlined" />
467 </context>
468 <context name="ItalicUnderlined" attribute="ItalicUnderlined" lineEndContext="#pop" >
469 <IncludeRules context="FindTemplate" />
470 <RegExpr String="&lt;/u *&gt;" context="#pop" attribute="HtmlTag" />
471 <StringDetect String="'''" context="ItalicUnderlinedBold" attribute="WikiTag" />
472 <IncludeRules context="FindWikiLinkBeingItalicUnderlined" />
473 </context>
474 <context name="UnderlinedItalic" attribute="ItalicUnderlined" lineEndContext="#pop" >
475 <IncludeRules context="FindTemplate" />
476 <Detect2Chars char="'" char1="'" context="#pop" attribute="WikiTag" />
477 <IncludeRules context="FindWikiLinkBeingItalicUnderlined" />
478 </context>
479 <context name="BoldItalicUnderlined" attribute="BoldItalicUnderlined" lineEndContext="#pop" >
480 <IncludeRules context="FindTemplate" />
481 <RegExpr String="&lt;/u *&gt;" context="#pop" attribute="HtmlTag" />
482 <IncludeRules context="FindWikiLinkBeingBoldItalicUnderlined" />
483 </context>
484 <context name="BoldUnderlinedItalic" attribute="BoldItalicUnderlined" lineEndContext="#pop" >
485 <IncludeRules context="FindTemplate" />
486 <Detect2Chars char="'" char1="'" context="#pop" attribute="WikiTag" />
487 <IncludeRules context="FindWikiLinkBeingBoldItalicUnderlined" />
488 </context>
489 <context name="ItalicUnderlinedBold" attribute="BoldItalicUnderlined" lineEndContext="#pop" >
490 <IncludeRules context="FindTemplate" />
491 <StringDetect String="'''" context="#pop" attribute="WikiTag" />
492 <IncludeRules context="FindWikiLinkBeingBoldItalicUnderlined" />
493 </context>
494
495 <!-- Contexts for inclusion. -->
496
497 <context name="FindHtmlEntities" attribute="Normal" lineEndContext="#stay">
498 <RegExpr String="&htmlEntity;" attribute="HtmlEntity" />
499 </context>
500
501 <context name="FindHtmlStartTagAttributes" attribute="Normal" lineEndContext="#stay">
502 <RegExpr attribute="HtmlAttribute" context="HtmlAttribute" String="^&htmlTagName;|\s+&htmlTagName;" />
503 <RegExpr attribute="Error" context="#stay" String="\S" />
504 </context>
505
506 <context attribute="Normal" lineEndContext="#stay" name="FindListItem" >
507 <RegExpr String="^[*#;:\s]*[*#:]+" attribute="WikiTag" context="#stay" column="0" />
508 </context>
509
510 <context attribute="Normal" lineEndContext="#stay" name="FindSyntaxHighlightingHtmlElement" >
511 <RegExpr String="&lt;source(?=\s)" context="SourceStartTag" attribute="HtmlTag" />
512 <RegExpr String="&lt;syntaxhighlight(?=\s)" context="SyntaxHighlightStartTag" attribute="HtmlTag" />
513 </context>
514
515 <context name="FindTable" attribute="Normal" lineEndContext="#stay">
516 <Detect2Chars char="{" char1="|" column="0" context="TableHeader" lookAhead="true" />
517 </context>
518
519 <context attribute="Normal" lineEndContext="#stay" name="FindTemplate" >
520 <Detect2Chars char="{" char1="{" context="Template" attribute="WikiTag" beginRegion="template" />
521 </context>
522
523 <context name="FindTextDecorations" attribute="Normal" lineEndContext="#stay">
524 <StringDetect String="'''" attribute="WikiTag" context="Bold" />
525 <Detect2Chars char="'" char1="'" attribute="WikiTag" context="Italic" />
526 <RegExpr String="&lt;u *&gt;" attribute="HtmlTag" context="Underlined" />
527 </context>
528 <context attribute="Normal" lineEndContext="#stay" name="FindTextDecorationsInHeader" >
529 <StringDetect String="'''" attribute="WikiTag" context="Bold" />
530 <Detect2Chars char="'" char1="'" attribute="WikiTag" context="BoldItalic" />
531 </context>
532
533 <context attribute="Normal" lineEndContext="#stay" name="FindUrl" >
534 <RegExpr String="\[&url;" attribute="WikiTag" context="DelimitedURL" lookAhead="true" />
535 <RegExpr String="&url;" context="LooseURL" lookAhead="true" />
536 </context>
537 <context attribute="Normal" lineEndContext="#stay" name="FindUrlWithinTemplate" >
538 <RegExpr String="\[&url;" attribute="WikiTag" context="DelimitedURL" lookAhead="true" />
539 <RegExpr String="&url;" context="LooseURLWithinTemplate" lookAhead="true" />
540 </context>
541
542 <context name="FindWikiLink" attribute="Normal" lineEndContext="#stay">
543 <Detect2Chars char="[" char1="[" attribute="WikiTag" context="WikiLink" />
544 </context>
545 <context name="FindWikiLinkBeingBold" attribute="Normal" lineEndContext="#stay">
546 <RegExpr String="&wikiLinkWithDescription;" context="WikiLinkBoldWithDescription" lookAhead="true" />
547 <RegExpr String="&wikiLinkWithoutDescription;" context="WikiLinkBoldWithoutDescription" lookAhead="true" />
548 </context>
549 <context name="FindWikiLinkBeingItalic" attribute="Normal" lineEndContext="#stay">
550 <RegExpr String="&wikiLinkWithDescription;" context="WikiLinkItalicWithDescription" lookAhead="true" />
551 <RegExpr String="&wikiLinkWithoutDescription;" context="WikiLinkItalicWithoutDescription" lookAhead="true" />
552 </context>
553 <context name="FindWikiLinkBeingUnderlined" attribute="Normal" lineEndContext="#stay">
554 <RegExpr String="&wikiLinkWithDescription;" context="WikiLinkUnderlinedWithDescription" lookAhead="true" />
555 <RegExpr String="&wikiLinkWithoutDescription;" context="WikiLinkUnderlinedWithoutDescription" lookAhead="true" />
556 </context>
557 <context name="FindWikiLinkBeingBoldItalic" attribute="Normal" lineEndContext="#stay">
558 <RegExpr String="&wikiLinkWithDescription;" context="WikiLinkBoldItalicWithDescription" lookAhead="true" />
559 <RegExpr String="&wikiLinkWithoutDescription;" context="WikiLinkBoldItalicWithoutDescription" lookAhead="true" />
560 </context>
561 <context name="FindWikiLinkBeingBoldUnderlined" attribute="Normal" lineEndContext="#stay">
562 <RegExpr String="&wikiLinkWithDescription;" context="WikiLinkBoldUnderlinedWithDescription" lookAhead="true" />
563 <RegExpr String="&wikiLinkWithoutDescription;" context="WikiLinkBoldUnderlinedWithoutDescription" lookAhead="true" />
564 </context>
565 <context name="FindWikiLinkBeingItalicUnderlined" attribute="Normal" lineEndContext="#stay">
566 <RegExpr String="&wikiLinkWithDescription;" context="WikiLinkItalicUnderlinedWithDescription" lookAhead="true" />
567 <RegExpr String="&wikiLinkWithoutDescription;" context="WikiLinkItalicUnderlinedWithoutDescription" lookAhead="true" />
568 </context>
569 <context name="FindWikiLinkBeingBoldItalicUnderlined" attribute="Normal" lineEndContext="#stay">
570 <RegExpr String="&wikiLinkWithDescription;" context="WikiLinkBoldItalicUnderlinedWithDescription" lookAhead="true" />
571 <RegExpr String="&wikiLinkWithoutDescription;" context="WikiLinkBoldItalicUnderlinedWithoutDescription" lookAhead="true" />
572 </context>
573
574 </contexts>
575 <itemDatas>
576 <itemData name="Normal" defStyleNum="dsNormal" />
577 <itemData name="Link" defStyleNum="dsOthers" />
578 <itemData name="LinkBold" defStyleNum="dsOthers" bold="true" />
579 <itemData name="LinkItalic" defStyleNum="dsOthers" italic="true" />
580 <itemData name="LinkUnderlined" defStyleNum="dsOthers" underline="true" />
581 <itemData name="LinkBoldItalic" defStyleNum="dsOthers" bold="true" italic="true" />
582 <itemData name="LinkBoldUnderlined" defStyleNum="dsOthers" bold="true" underline="true" />
583 <itemData name="LinkItalicUnderlined" defStyleNum="dsOthers" italic="true" underline="true" />
584 <itemData name="LinkBoldItalicUnderlined" defStyleNum="dsOthers" bold="true" italic="true" underline="true" />
585 <itemData name="Comment" defStyleNum="dsComment" />
586 <itemData name="Section" defStyleNum="dsKeyword" />
587 <itemData name="DefinitionListHeader" defStyleNum="dsKeyword" />
588 <itemData name="HtmlEntity" defStyleNum="dsDecVal" />
589 <itemData name="HtmlTag" defStyleNum="dsKeyword" />
590 <itemData name="WikiTag" defStyleNum="dsDecVal" bold="true" />
591 <itemData name="WikiTagBold" defStyleNum="dsDecVal" bold="true" />
592 <itemData name="WikiTagItalic" defStyleNum="dsDecVal" bold="true" italic="true" />
593 <itemData name="WikiTagUnderlined" defStyleNum="dsDecVal" bold="true" underline="true" />
594 <itemData name="WikiTagBoldItalic" defStyleNum="dsDecVal" bold="true" italic="true" />
595 <itemData name="WikiTagBoldUnderlined" defStyleNum="dsDecVal" bold="true" underline="true" />
596 <itemData name="WikiTagItalicUnderlined" defStyleNum="dsDecVal" bold="true" italic="true" underline="true" />
597 <itemData name="WikiTagBoldItalicUnderlined" defStyleNum="dsDecVal" bold="true" italic="true" underline="true" />
598 <itemData name="Error" defStyleNum="dsError" />
599 <itemData name="NoWiki" defStyleNum="dsNormal" />
600 <itemData name="Unformatted" defStyleNum="dsNormal" />
601 <itemData name="Parameter" defStyleNum="dsNormal" bold="true" />
602 <itemData name="TemplateName" defStyleNum="dsOthers" bold="true" />
603 <itemData name="Bold" defStyleNum="dsNormal" bold="true" />
604 <itemData name="Italic" defStyleNum="dsNormal" italic="true" />
605 <itemData name="Underlined" defStyleNum="dsNormal" underline="true" />
606 <itemData name="BoldItalic" defStyleNum="dsNormal" bold="true" italic="true" />
607 <itemData name="BoldUnderlined" defStyleNum="dsNormal" bold="true" underline="true" />
608 <itemData name="ItalicUnderlined" defStyleNum="dsNormal" italic="true" underline="true" />
609 <itemData name="BoldItalicUnderlined" defStyleNum="dsNormal" bold="true" italic="true" underline="true" />
610 <itemData name="HtmlAttribute" defStyleNum="dsOthers" spellChecking="false" />
611 <itemData name="HtmlValue" defStyleNum="dsString" spellChecking="false" />
612 </itemDatas>
613 </highlighting>
614 <general>
615 <comments>
616 <comment name="multiLine" start="&lt;!--" end="--&gt;" region="comment" />
617 </comments>
618 <keywords casesensitive="0" />
619 </general>
620 </language>
621 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->