aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/editor-syntax-etc/kate/sisu.xml
blob: a8054f2d2a3f35bc30a83a4322e2fec744c225d0 (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="SiSU" version="1.00" section="Markup" kateversion="2.4" extensions="*.sst; *.ssm; *.ssi; *._sst; *.-sst;" author="Ralph Amissah (ralph.amissah@gmail.com)" license="LGPL" >
  <highlighting>
    <list name="somename">
      <item> class </item>
      <item> const </item>
    </list>
    <contexts>
    <context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" >
      <StringDetect String="&lt;br&gt;" attribute="Break" context="#pop" />
      <RegExpr String="\s+$" attribute="Warn" context="#pop" />
      <RegExpr String="&lt;\S+&gt;" attribute="Warn" context="#pop"  />
      <RegExpr String="&lt;a href=\S+&gt;" attribute="Warn" context="#pop"  />
      <RegExpr String="&lt;a href=" attribute="Warn" context="#pop"  />
      <RegExpr String="&lt;/a&gt;" attribute="Warn" context="#pop" />
      <RegExpr String="&lt;https?:\/\/\S+&gt;" attribute="Warn" context="#pop"/>
      <RegExpr String="&gt;https?:\/\/\S+" attribute="Warn" context="#pop"/>
      <RegExpr String="^&lt;&lt;\s+[a-zA-Z._]+\.ss[it]" attribute="Link" context="#pop"/>
      <RegExpr String="^&lt;&lt;\{\s*[a-zA-Z._]+\.ss[it]\s*\}" attribute="Link" context="#pop"/>
      <RegExpr String="&lt;&lt;\s+&#124;" attribute="Link" context="#pop"/>
      <RegExpr String="https?:\/\/\S+&lt;" attribute="Warn" context="#pop"/>
      <keyword attribute="Keyword" context="#stay" String="somename" />
      <DetectChar attribute="String" context="string" char="&quot;" />
      <RegExpr String="^(0~\S+|@\S+)\s.+$" attribute="Header" context="#pop" />
      <RegExpr String="^:?[A-C1-9]~.+$" attribute="Heading" context="#pop" />
      <StringDetect String="~{" attribute="Endnote" context="footnote"/>
      <StringDetect String="^~" attribute="Endnote" context="endnote"/>
      <StringDetect String="!{" attribute="Bold" context="emphasis"/>
      <StringDetect String="*{" attribute="Bold" context="bold"/>
      <StringDetect String="/{" attribute="Italic" context="italic"/>
      <StringDetect String="_{" attribute="Underscore" context="underscore"/>
      <StringDetect String="^{" attribute="Superscript" context="superscript"/>
      <StringDetect String=",{" attribute="Subscript" context="subscript"/>
      <StringDetect String="-{" attribute="Strike" context="strike"/>
      <StringDetect String="+{" attribute="Insert" context="insert"/>
      <RegExpr String="\{[\s\S]+\}https?:\/\/\S+(\s|$)" attribute="Link" context="#pop" minimal="true" />
      <RegExpr String="\{[\s\S]+\}\.\.\/\S+(\s|$)" attribute="Link" context="#stay" minimal="true" />
      <RegExpr String="\{[\s\S]+\}image(\s|$)" attribute="Link" context="#stay" minimal="true" />
      <RegExpr String="\s_?https?:\/\/\S+" attribute="Link" context="#stay"/>
      <RegExpr String="^_?https?:\/\/\S+" attribute="Link" context="#stay"/>
      <RegExpr String="^!_ .+" attribute="Bold" context="boldline"/>
      <RegExpr String="^(_[1-9]|_\*|_[1-9]\*)\s" attribute="Indent" context="#stay"/>
      <RegExpr String="~\^" attribute="Endnote" context="#stay"/>
      <RegExpr String="^%+\s.+$" attribute="Comment" context="#stay" endRegion="regionMarker" firstNonSpace="true" />
    </context>
    <context attribute="String" lineEndContext="#stay" name="string" >
      <DetectChar attribute="String" context="#pop" char="&quot;" />
    </context>
    <context attribute="Endnote" lineEndContext="#stay" name="footnote" >
      <StringDetect attribute="Endnote" context="#pop" String="}~" />
      <RegExpr String="\{[\s\S]+\}https?:\/\/\S+(\s|$)" attribute="Link" context="#pop" minimal="true" />
      <RegExpr String="\{[\s\S]+\}\.\.\/\S+(\s|$)" attribute="Link" context="#stay" minimal="true" />
      <RegExpr String="\{[\s\S]+\}image(\s|$)" attribute="Link" context="#stay" minimal="true" />
      <RegExpr String="\s_?https?:\/\/\S+" attribute="Link" context="#stay"/>
      <RegExpr String="^_?https?:\/\/\S+" attribute="Link" context="#stay"/>
      <StringDetect String="!{" attribute="Bold" context="emphasis"/>
      <StringDetect String="*{" attribute="Bold" context="bold"/>
      <StringDetect String="/{" attribute="Italic" context="italic"/>
      <StringDetect String="_{" attribute="Underscore" context="underscore"/>
      <StringDetect String="^{" attribute="Superscript" context="superscript"/>
      <StringDetect String=",{" attribute="Subscript" context="subscript"/>
      <StringDetect String="-{" attribute="Strike" context="strike"/>
      <StringDetect String="+{" attribute="Insert" context="insert"/>
    </context>
    <context attribute="Bold" lineEndContext="#stay" name="bold" >
      <StringDetect attribute="Bold" context="#pop" String="}*" />
      <StringDetect String="/{" attribute="Italic" context="italic"/>
      <StringDetect String="_{" attribute="Underscore" context="underscore"/>
      <StringDetect String="^{" attribute="Superscript" context="superscript"/>
      <StringDetect String=",{" attribute="Subscript" context="subscript"/>
      <StringDetect String="-{" attribute="Strike" context="strike"/>
      <StringDetect String="+{" attribute="Insert" context="insert"/>
    </context>
    <context attribute="Bold" lineEndContext="#stay" name="emphasis" >
      <StringDetect attribute="Bold" context="#pop" String="}!" />
      <StringDetect String="/{" attribute="Italic" context="italic"/>
      <StringDetect String="_{" attribute="Underscore" context="underscore"/>
      <StringDetect String="^{" attribute="Superscript" context="superscript"/>
      <StringDetect String=",{" attribute="Subscript" context="subscript"/>
      <StringDetect String="-{" attribute="Strike" context="strike"/>
      <StringDetect String="+{" attribute="Insert" context="insert"/>
    </context>
    <context attribute="Italic" lineEndContext="#stay" name="italic" >
      <StringDetect attribute="Italic" context="#pop" String="}/" />
      <StringDetect String="!{" attribute="Bold" context="emphasis"/>
      <StringDetect String="*{" attribute="Bold" context="bold"/>
      <StringDetect String="_{" attribute="Underscore" context="underscore"/>
      <StringDetect String="^{" attribute="Superscript" context="superscript"/>
      <StringDetect String=",{" attribute="Subscript" context="subscript"/>
      <StringDetect String="-{" attribute="Strike" context="strike"/>
      <StringDetect String="+{" attribute="Insert" context="insert"/>
    </context>
    <context attribute="Underscore" lineEndContext="#stay" name="underscore" >
      <StringDetect attribute="Underscore" context="#pop" String="}_" />
      <StringDetect String="!{" attribute="Bold" context="emphasis"/>
      <StringDetect String="*{" attribute="Bold" context="bold"/>
      <StringDetect String="/{" attribute="Italic" context="italic"/>
      <StringDetect String="^{" attribute="Superscript" context="superscript"/>
      <StringDetect String=",{" attribute="Subscript" context="subscript"/>
      <StringDetect String="-{" attribute="Strike" context="strike"/>
      <StringDetect String="+{" attribute="Insert" context="insert"/>
    </context>
    <context attribute="Superscript" lineEndContext="#stay" name="superscript" >
      <StringDetect attribute="Superscript" context="#pop" String="}^" />
      <StringDetect String="!{" attribute="Bold" context="emphasis"/>
      <StringDetect String="*{" attribute="Bold" context="bold"/>
      <StringDetect String="/{" attribute="Italic" context="italic"/>
      <StringDetect String="_{" attribute="Underscore" context="underscore"/>
      <StringDetect String=",{" attribute="Subscript" context="subscript"/>
      <StringDetect String="-{" attribute="Strike" context="strike"/>
      <StringDetect String="+{" attribute="Insert" context="insert"/>
    </context>
    <context attribute="Subscript" lineEndContext="#stay" name="subscript" >
      <StringDetect attribute="Subscript" context="#pop" String="}," />
      <StringDetect String="!{" attribute="Bold" context="emphasis"/>
      <StringDetect String="*{" attribute="Bold" context="bold"/>
      <StringDetect String="/{" attribute="Italic" context="italic"/>
      <StringDetect String="_{" attribute="Underscore" context="underscore"/>
      <StringDetect String="^{" attribute="Superscript" context="superscript"/>
      <StringDetect String="-{" attribute="Strike" context="strike"/>
      <StringDetect String="+{" attribute="Insert" context="insert"/>
    </context>
    <context attribute="Strike" lineEndContext="#stay" name="strike" >
      <StringDetect attribute="Strike" context="#pop" String="}-" />
      <StringDetect String="!{" attribute="Bold" context="emphasis"/>
      <StringDetect String="*{" attribute="Bold" context="bold"/>
      <StringDetect  String="/{" attribute="Italic" context="italic"/>
      <StringDetect String="_{" attribute="Underscore" context="underscore"/>
      <StringDetect  String="^{" attribute="Superscript" context="superscript"/>
      <StringDetect  String=",{" attribute="Subscript" context="subscript"/>
      <StringDetect  String="+{" attribute="Insert" context="insert"/>
    </context>
    <context attribute="Insert" lineEndContext="#stay" name="insert" >
      <StringDetect attribute="Insert" context="#pop" String="}+" />
      <StringDetect String="!{" attribute="Bold" context="emphasis"/>
      <StringDetect String="*{" attribute="Bold" context="bold"/>
      <StringDetect String="/{" attribute="Italic" context="italic"/>
      <StringDetect String="_{" attribute="Underscore" context="underscore"/>
      <StringDetect String="^{" attribute="Superscript" context="superscript"/>
      <StringDetect String=",{" attribute="Subscript" context="subscript"/>
      <StringDetect String="-{" attribute="Strike" context="strike"/>
    </context>
    <context attribute="Endnote" lineEndContext="#pop" name="endnote" />
    <context attribute="Bold" lineEndContext="#pop" name="boldline" />
    <context attribute="Indent" lineEndContext="#pop" name="indent" />
    <context attribute="Warn" lineEndContext="#pop"  name="warn" />
    </contexts>
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal" />
      <itemData name="Header" defStyleNum="dsNormal" color="#1c869b" selColor="#60FFFF" bold="0" italic="0"/>
      <itemData name="Heading" defStyleNum="dsNormal" color="#ff0000" selColor="#60FFFF" bold="1" italic="0"/>
      <itemData name="Bold" defStyleNum="dsNormal" color="#800000" selColor="#60FFFF" bold="1" italic="0"/>
      <itemData name="Italic" defStyleNum="dsNormal" color="#800000" selColor="#60FFFF" bold="0" italic="1"/>
      <itemData name="Underscore" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
      <itemData name="Superscript" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
      <itemData name="Subscript" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
      <itemData name="Strike" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
      <itemData name="Insert" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
      <itemData name="Keyword" defStyleNum="dsKeyword" />
      <itemData name="Endnote" defStyleNum="dsNormal" color="#0AAA00" selColor="#60FFFF" bold="0" italic="0"/>
      <itemData name="Link" defStyleNum="dsNormal" color="#0000FF" selColor="#60FFFF" bold="0" italic="0"/>
      <itemData name="String" defStyleNum="dsString" />
      <itemData name="Comment" defStyleNum="dsComment"/>
      <itemData name="Group" defStyleNum="dsRegionMarker"/>
      <itemData name="Break" defStyleNum="dsNormal" color="#FF0000" selColor="#60FFFF" bold="0" italic="0"/>
      <itemData name="Indent" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
      <itemData name="Structure" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
      <itemData name="Warn" defStyleNum="dsError" color="#FF00FF" selColor="#000000" bold="1" italic="0"/>
    </itemDatas>
  </highlighting>
  <general>
    <keywords weakDeliminator="\" wordWrapDeliminator=",{}[]"/>
    <comments>
      <comment name="singleLine" start="%" />
    </comments>
  </general>
</language>