summaryrefslogtreecommitdiffstats
path: root/kate/data/mediawiki.xml
blob: 42ec1dd32542ac8f4e4b20acf86298923a986626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="MediaWiki" section="Markup" version="1.02" kateversion="2.4" extensions="" mimetype="" license="FDL" >
  <highlighting>
    <contexts>
      <context attribute="Normal" lineEndContext="#stay" name="normal" >
        <StringDetect String="&lt;!--" context="comment" attribute="Comment" beginRegion="comment" />
        <RegExpr String="([=]{2,2}[^=]+[=]{2,2}|[=]{3,3}[^=]+[=]{3,3}|[=]{4,4}[^=]+[=]{4,4}|[=]{5,5}[^=]+[=]{5,5})" attribute="Section" column="0" />
        <RegExpr String="[~]{3,4}" attribute="Wiki-Tag" context="#stay" />
        <RegExpr String="[*#;:\s]*[*#:]+" attribute="Wiki-Tag" context="#stay" column="0" />
        <RegExpr String="[[](?![[])" attribute="Wiki-Tag" context="URL" />
        <RegExpr String="(http:|ftp:|mailto:)[\S]*($|[\s])" attribute="URL" context="#stay" />
        <RegExpr String="[']{2,}" attribute="Wiki-Tag" context="#stay" />
        <Detect2Chars char="{" char1="|" context="Table" attribute="Wiki-Tag" column="0" beginRegion="table" />
        <Detect2Chars char="{" char1="{" context="Template" attribute="Wiki-Tag" />
        <Detect2Chars char="[" char1="[" context="WikiLink" attribute="Wiki-Tag" />
        <RangeDetect char="&amp;" char1=";" attribute="HTML-Entity" context="#stay" />
        <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="Wiki-Tag" />
        <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HTML-Tag" />
        <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HTML-Tag" context="#stay" />
        <RegExpr String="[\s]" context="Unformatted" column="0" />
      </context>
      <context attribute="Normal" lineEndContext="#stay" name="Table" >
        <StringDetect String="&lt;!--" context="comment" attribute="Comment" />
        <RegExpr String="([=]{2,2}[^=]+[=]{2,2}|[=]{3,3}[^=]+[=]{3,3}|[=]{4,4}[^=]+[=]{4,4}|[=]{5,5}[^=]+[=]{5,5})" attribute="Section" context="#stay" column="0" />
        <RegExpr String="[*#;:\s]*[*#:]+" attribute="Wiki-Tag" context="#stay" column="0" />
        <RegExpr String="[[](?![[])" context="URL" attribute="Wiki-Tag" />
        <RegExpr String="(http:|ftp:|mailto:)[\S]*($|[\s])" attribute="URL" context="#stay" />
        <RegExpr String="[']{2,}" attribute="Wiki-Tag" context="#stay" />
        <Detect2Chars char="|" char1="}" context="#pop" attribute="Wiki-Tag" column="0" endRegion="table" />
        <DetectChar char="|" attribute="Wiki-Tag" context="#stay"/>
        <Detect2Chars char="{" char1="{" context="Template" attribute="Wiki-Tag" />
        <Detect2Chars char="[" char1="[" context="WikiLink" attribute="Wiki-Tag" />
        <RangeDetect char="&amp;" char1=";" attribute="HTML-Entity" context="#stay" />
        <StringDetect String="&lt;nowiki&gt;" context="NoWiki" attribute="Wiki-Tag" />
        <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HTML-Tag" />
        <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HTML-Tag" context="#stay" />
        <RegExpr String="[\s]" context="Unformatted" column="0" />
        <RegExpr String="[~]{3,4}" attribute="Wiki-Tag" context="#stay" />
        <RegExpr String="[-]{4,}" attribute="Wiki-Tag" context="#stay" />
        <DetectChar char="!" attribute="Wiki-Tag" context="#stay" column="0" />
      </context>
      <context attribute="Comment" lineEndContext="#stay" name="comment" >
        <StringDetect String="--&gt;" context="#pop" attribute="Comment" endRegion="comment" />
      </context>
      <context attribute="Link" lineEndContext="#stay" name="URL" >
        <DetectChar char="]" context="#pop" attribute="Wiki-Tag" />
        <DetectChar char="'" context="Error" attribute="Error" />
      </context>
      <context attribute="Link" lineEndContext="#stay" name="WikiLink" >
        <DetectChar char="|" attribute="Wiki-Tag" context="WikiLinkDescription" />
        <Detect2Chars char="]" char1="]" context="#pop" attribute="Wiki-Tag" />
        <DetectChar char="'" context="Error" attribute="Error" />
      </context>
      <context attribute="Link" lineEndContext="#stay" name="WikiLinkDescription" >
        <Detect2Chars char="]" char1="]" context="#pop" attribute="Wiki-Tag" lookAhead="true" />
      </context>
      <context attribute="Template" lineEndContext="#stay" name="Link" >
        <Detect2Chars char="}" char1="}" context="#pop" attribute="Wiki-Tag" />
        <AnyChar String="'[]" context="Error" attribute="Error" />
      </context>
      <context attribute="Error" lineEndContext="#pop" name="Error" />
      <context attribute="Link" lineEndContext="#stay" name="Template" >
        <Detect2Chars char="}" char1="}" context="#pop" attribute="Wiki-Tag" />
        <DetectChar char="'" context="Error" attribute="Error" />
      </context>
      <context attribute="NoWiki" lineEndContext="#stay" name="NoWiki" >
        <RegExpr String="&lt;!--[^-]*--&gt;" attribute="NoWiki" />
        <StringDetect String="&lt;/nowiki&gt;" context="#pop" attribute="Wiki-Tag" />
        <RegExpr String="[&lt;][^&gt;]+[&gt;]" attribute="HTML-Tag" context="#stay" />
        <StringDetect String="&lt;pre&gt;" context="Pre" attribute="HTML-Tag" />
      </context>
      <context attribute="Unformatted" lineEndContext="#pop" name="Unformatted" />
      <context attribute="NoWiki" lineEndContext="#stay" name="Pre" >
      <StringDetect String="&lt;/pre&gt;" context="#pop" attribute="Wiki-Tag" />
      </context>
    </contexts>
    <itemDatas>
      <itemData name="Normal" defStyleNum="dsNormal" />
      <itemData name="Link" defStyleNum="dsOthers" />
      <itemData name="URL" defStyleNum="dsOthers" />
      <itemData name="Comment" defStyleNum="dsComment" />
      <itemData name="Section" defStyleNum="dsKeyword" />
      <itemData name="HTML-Entity" defStyleNum="dsDecVal" />
      <itemData name="HTML-Tag" defStyleNum="dsKeyword" />
      <itemData name="Wiki-Tag" defStyleNum="dsDecVal" bold="true" />
      <itemData name="Error" defStyleNum="dsError" />
      <itemData name="NoWiki" defStyleNum="dsNormal" />
      <itemData name="Unformatted" defStyleNum="dsNormal" />
    </itemDatas>
  </highlighting>
  <general>
    <comments>
      <comment end="//-->" start="&lt;!--" name="multiLine" />
    </comments>
    <keywords casesensitive="0" />
  </general>
</language>