~ubuntu-branches/ubuntu/vivid/kate/vivid-updates

« back to all changes in this revision

Viewing changes to part/syntax/data/sed.xml

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-12-04 16:49:41 UTC
  • mfrom: (1.6.6)
  • Revision ID: package-import@ubuntu.com-20141204164941-l3qbvsly83hhlw2v
Tags: 4:14.11.97-0ubuntu1
* New upstream release
* Update build-deps and use pkg-kde v3 for Qt 5 build
* kate-data now kate5-data for co-installability

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE language SYSTEM "language.dtd">
3
 
<language name="sed" section="Scripts" version="1.0" kateversion="2.4" extensions="*.sed" mimetype="text/x-sed" author="Bart Sas (bart.sas@gmail.com)" license="GPL">
4
 
        <highlighting>
5
 
                <contexts>
6
 
                        <context name="BeginningOfLine" attribute="Normal" lineEndContext="#stay">
7
 
                                <DetectSpaces/>
8
 
                                <DetectChar char="#"     attribute="Comment"     context="Comment"/>
9
 
                                <RegExpr String="(/)"    attribute="Separator"   context="FirstAddressRegex"/>
10
 
                                <RegExpr String="\\(\S)" attribute="Separator"   context="FirstAddressRegex"/>
11
 
                                <Int                     attribute="Line Number" context="AfterFirstAddress"/>
12
 
                                <DetectChar char="$"     attribute="Last Line"   context="AfterFirstAddress"/>
13
 
                                <DetectChar char="}"     attribute="Brace"       context="AfterCommand"/>
14
 
                                <DetectChar char=":"     attribute="Label"       context="Label"/>
15
 
                                <DetectChar char="!"     attribute="Negation"    context="Command"/>
16
 
                                <IncludeRules                                    context="Command"/>
17
 
                                <RegExpr String="\S"     attribute="Error"       context="Error"/>
18
 
                        </context>
19
 
 
20
 
                        <context name="FirstAddressRegex" attribute="Regex" lineEndContext="Error" dynamic="true">
21
 
                                <DetectSpaces/>
22
 
                                <RegExpr String="\\%1" attribute="Regex Escape" context="#stay"             dynamic="true"/>
23
 
                                <RegExpr String="%1"   attribute="Separator"    context="AfterFirstAddress" dynamic="true"/>
24
 
                                <IncludeRules                                   context="Regex"/>
25
 
                        </context>
26
 
 
27
 
                        <context name="AfterFirstAddress" attribute="Normal" lineEndContext="BeginningOfLine">
28
 
                                <DetectSpaces/>
29
 
                                <DetectChar char="!" attribute="Negation" context="Command"/>
30
 
                                <IncludeRules                             context="AfterFirstAddress2"/>
31
 
                                <RegExpr String="\S" attribute="Error"    context="Error"/>
32
 
                        </context>
33
 
 
34
 
                        <context name="AfterFirstAddress2" attribute="Normal" lineEndContext="BeginningOfLine">
35
 
                                <DetectSpaces/>
36
 
                                <DetectChar char="," attribute="Normal" context="SecondAddress"/>
37
 
                                <DetectChar char="~" attribute="Normal" context="Step"/>
38
 
                                <IncludeRules                           context="Command"/>
39
 
                                <RegExpr String="\S" attribute="Error"  context="Error"/>
40
 
                        </context>
41
 
 
42
 
                        <context name="SecondAddress" attribute="Normal" lineEndContext="Error">
43
 
                                <DetectSpaces/>
44
 
                                <RegExpr String="(/)"    attribute="Separator"   context="SecondAddressRegex"/>
45
 
                                <RegExpr String="\\(\S)" attribute="Separator"   context="SecondAddressRegex"/>
46
 
                                <Int                     attribute="Line Number" context="AfterSecondAddress"/>
47
 
                                <DetectChar char="$"     attribute="Last Line"   context="AfterSecondAddress"/>
48
 
                                <RegExpr String="\S"     attribute="Error"       context="Error"/>
49
 
                        </context>
50
 
 
51
 
                        <context name="SecondAddressRegex" attribute="Regex" lineEndContext="Error" dynamic="true">
52
 
                                <DetectSpaces/>
53
 
                                <RegExpr String="\\%1" attribute="Regex Escape" context="#stay"              dynamic="true"/>
54
 
                                <RegExpr String="%1"   attribute="Separator"    context="AfterSecondAddress" dynamic="true"/>
55
 
                                <IncludeRules                                   context="Regex"/>
56
 
                        </context>
57
 
 
58
 
                        <context name="AfterSecondAddress" attribute="Normal" lineEndContext="Error" dynamic="true">
59
 
                                <DetectSpaces/>
60
 
                                <DetectChar char="!" attribute="Negation" context="Command"/>
61
 
                                <IncludeRules                             context="Command"/>
62
 
                                <RegExpr String="\S" attribute="Error"    context="Error"/>
63
 
                        </context>
64
 
 
65
 
                        <context name="Step" attribute="Normal" lineEndContext="Error">
66
 
                                <DetectSpaces/>
67
 
                                <Int                 attribute="Step"  context="Command"/>
68
 
                                <RegExpr String="\S" attribute="Error" context="Error"/>
69
 
                        </context>
70
 
 
71
 
                        <context name="Command" attribute="Normal" lineEndContext="Error">
72
 
                                <DetectSpaces/>
73
 
                                <DetectChar char="s"              attribute="Command" context="SCommand"/>
74
 
                                <DetectChar char="y"              attribute="Command" context="YCommand"/>
75
 
                                <AnyChar String="dpnDNPhHgGxFvz=" attribute="Command" context="AfterCommand"/>
76
 
                                <AnyChar String="aic"             attribute="Command" context="AICCommand"/>
77
 
                                <AnyChar String="bTt"             attribute="Command" context="BTCommand"/>
78
 
                                <AnyChar String="WwrR"            attribute="Command" context="WRCommand"/>
79
 
                                <AnyChar String="lL"              attribute="Command" context="LCommand"/>
80
 
                                <AnyChar String="qQ"              attribute="Command" context="QCommand"/>
81
 
                                <DetectChar char="{"              attribute="Brace"   context="BeginningOfLine"/>
82
 
                                <RegExpr String="\S"              attribute="Error"   context="Error"/>
83
 
                        </context>
84
 
 
85
 
                        <context name="SCommand" attribute="Normal" lineEndContext="Error">
86
 
                                <DetectSpaces/>
87
 
                                <RegExpr String="(\S)" attribute="Separator" context="SRegex"/>
88
 
                        </context>
89
 
 
90
 
                        <context name="SRegex" attribute="Regex" lineEndContext="Error" dynamic="true">
91
 
                                <DetectSpaces/>
92
 
                                <RegExpr String="\\%1" attribute="Regex Escape" context="#stay"        dynamic="true"/>
93
 
                                <RegExpr String="(%1)" attribute="Separator"    context="SReplacement" dynamic="true"/>
94
 
                                <IncludeRules                                   context="Regex"/>
95
 
                        </context>
96
 
 
97
 
                        <context name="SReplacement" attribute="Replacement" lineEndContext="Error" dynamic="true">
98
 
                                <DetectSpaces/>
99
 
                                <RegExpr String="\\%1"                attribute="Repl Escape" context="#stay"  dynamic="true"/>
100
 
                                <RegExpr String="%1"                  attribute="Separator"   context="SFlags" dynamic="true"/>
101
 
                                <RegExpr String="\\[0-9LlUuE\\&amp;]" attribute="Repl Escape" context="#stay"/>
102
 
                                <DetectChar char="&amp;"              attribute="Repl Escape" context="#stay"/>
103
 
                        </context>
104
 
 
105
 
                        <context name="SFlags" attribute="Normal" lineEndContext="BeginningOfLine">
106
 
                                <DetectSpaces/>
107
 
                                <AnyChar String="gpeIiMm" attribute="Flag"        context="#stay"/>
108
 
                                <DetectChar char="w"      attribute="Flag"        context="WFlag"/>
109
 
                                <Int                      attribute="Repl Number" context="#stay"/>
110
 
                                <IncludeRules                                     context="AfterCommand"/>
111
 
                        </context>
112
 
 
113
 
                        <context name="WFlag" attribute="Normal" lineEndContext="BeginningOfLine">
114
 
                                <DetectSpaces/>
115
 
                                <RegExpr String="\S+" attribute="Filename" context="SFlags"/>
116
 
                        </context>
117
 
 
118
 
                        <context name="YCommand" attribute="Normal" lineEndContext="Error">
119
 
                                <DetectSpaces/>
120
 
                                <RegExpr String="(\S)" attribute="Separator" context="YSourceList"/>
121
 
                        </context>
122
 
 
123
 
                        <context name="YSourceList" attribute="Char List" lineEndContext="Error" dynamic="true">
124
 
                                <DetectSpaces/>
125
 
                                <RegExpr String="\\%1"           attribute="Char List Escape" context="#stay"     dynamic="true"/>
126
 
                                <RegExpr String="(%1)"           attribute="Separator"        context="YDestList" dynamic="true"/>
127
 
                                <Detect2Chars char="\" char1="n" attribute="Char List Escape" context="#stay"/>
128
 
                                <Detect2Chars char="\" char1="\" attribute="Char List Escape" context="#stay"/>
129
 
                        </context>
130
 
 
131
 
                        <context name="YDestList" attribute="Char List" lineEndContext="Error" dynamic="true">
132
 
                                <DetectSpaces/>
133
 
                                <RegExpr String="\\%1"           attribute="Char List Escape" context="#stay"        dynamic="true"/>
134
 
                                <RegExpr String="%1"             attribute="Separator"        context="AfterCommand" dynamic="true"/>
135
 
                                <Detect2Chars char="\" char1="n" attribute="Char List Escape" context="#stay"/>
136
 
                                <Detect2Chars char="\" char1="\" attribute="Char List Escape" context="#stay"/>
137
 
                        </context>
138
 
 
139
 
                        <context name="AICCommand" attribute="Normal" lineEndContext="Error">
140
 
                                <DetectSpaces/>
141
 
                                <LineContinue             attribute="Line Continue" context="LiteralText"/>
142
 
                                <RegExpr      String="\S" attribute="Error"         context="Error"/>
143
 
                        </context>
144
 
 
145
 
                        <context name="LiteralText" attribute="Literal Text" lineEndContext="BeginningOfLine">
146
 
                                <Detect2Chars char="\" char1="\" attribute="Literal Escape" context="LiteralText"/>
147
 
                                <LineContinue                    attribute="Line Continue"  context="LiteralText"/>
148
 
                                <DetectChar   char="\"           attribute="Error"          context="Error"/>
149
 
                        </context>
150
 
 
151
 
                        <context name="BTCommand" attribute="Normal" lineEndContext="BeginningOfLine">
152
 
                                <DetectSpaces/>
153
 
                                <RegExpr String="\w+" attribute="Label" context="AfterCommand"/>
154
 
                                <IncludeRules                           context="AfterCommand"/>
155
 
                        </context>
156
 
 
157
 
                        <context name="WRCommand" attribute="Normal" lineEndContext="Error">
158
 
                                <DetectSpaces/>
159
 
                                <RegExpr String="\S+" attribute="Filename" context="AfterCommand"/>
160
 
                        </context>
161
 
 
162
 
                        <context name="LCommand" attribute="Normal" lineEndContext="BeginningOfLine">
163
 
                                <DetectSpaces/>
164
 
                                <Int attribute="Wrap Length" context="AfterCommand"/>
165
 
                                <IncludeRules                context="AfterCommand"/>
166
 
                        </context>
167
 
 
168
 
                        <context name="QCommand" attribute="Normal" lineEndContext="BeginningOfLine">
169
 
                                <DetectSpaces/>
170
 
                                <Int attribute="Exit Code" context="AfterCommand"/>
171
 
                                <IncludeRules              context="AfterCommand"/>
172
 
                        </context>
173
 
 
174
 
                        <context name="Label" attribute="Normal" lineEndContext="Error">
175
 
                                <DetectSpaces/>
176
 
                                <RegExpr String="\w+" attribute="Label" context="AfterCommand"/>
177
 
                                <RegExpr String="\S"  attribute="Error" context="Error"/>
178
 
                        </context>
179
 
 
180
 
                        <context name="AfterCommand" attribute="Normal" lineEndContext="BeginningOfLine">
181
 
                                <DetectSpaces/>
182
 
                                <DetectChar char=";" attribute="Normal"  context="BeginningOfLine"/>
183
 
                                <DetectChar char="}" attribute="Brace"   context="AfterCommand"/>
184
 
                                <DetectChar char="#" attribute="Comment" context="Comment"/>
185
 
                                <RegExpr String="\S" attribute="Error"   context="Error"/>
186
 
                        </context>
187
 
 
188
 
                        <context name="Regex" attribute="Regex" lineEndContext="Error">
189
 
                                <Detect2Chars char="\" char1="(" attribute="Regex Escape" context="#stay"/>
190
 
                                <Detect2Chars char="\" char1=")" attribute="Regex Escape" context="#stay"/>
191
 
                                <Detect2Chars char="\" char1="+" attribute="Regex Escape" context="#stay"/>
192
 
                                <Detect2Chars char="\" char1="?" attribute="Regex Escape" context="#stay"/>
193
 
                                <Detect2Chars char="\" char1="|" attribute="Regex Escape" context="#stay"/>
194
 
                                <Detect2Chars char="\" char1="{" attribute="Regex Escape" context="#stay"/>
195
 
                                <Detect2Chars char="\" char1="}" attribute="Regex Escape" context="#stay"/>
196
 
                                <Detect2Chars char="\" char1="[" attribute="Regex Escape" context="#stay"/>
197
 
                                <Detect2Chars char="\" char1="]" attribute="Regex Escape" context="#stay"/>
198
 
                                <Detect2Chars char="\" char1="." attribute="Regex Escape" context="#stay"/>
199
 
                                <Detect2Chars char="\" char1="*" attribute="Regex Escape" context="#stay"/>
200
 
                                <Detect2Chars char="\" char1="\" attribute="Regex Escape" context="#stay"/>
201
 
                                <Detect2Chars char="\" char1="^" attribute="Regex Escape" context="#stay"/>
202
 
                                <Detect2Chars char="\" char1="$" attribute="Regex Escape" context="#stay"/>
203
 
                                <Detect2Chars char="\" char1="n" attribute="Regex Escape" context="#stay"/>
204
 
                                <Detect2Chars char="\" char1="t" attribute="Regex Escape" context="#stay"/>
205
 
                                <Detect2Chars char="\" char1="0" attribute="Regex Escape" context="#stay"/>
206
 
                                <Detect2Chars char="\" char1="1" attribute="Regex Escape" context="#stay"/>
207
 
                                <Detect2Chars char="\" char1="2" attribute="Regex Escape" context="#stay"/>
208
 
                                <Detect2Chars char="\" char1="3" attribute="Regex Escape" context="#stay"/>
209
 
                                <Detect2Chars char="\" char1="4" attribute="Regex Escape" context="#stay"/>
210
 
                                <Detect2Chars char="\" char1="5" attribute="Regex Escape" context="#stay"/>
211
 
                                <Detect2Chars char="\" char1="6" attribute="Regex Escape" context="#stay"/>
212
 
                                <Detect2Chars char="\" char1="7" attribute="Regex Escape" context="#stay"/>
213
 
                                <Detect2Chars char="\" char1="8" attribute="Regex Escape" context="#stay"/>
214
 
                                <Detect2Chars char="\" char1="9" attribute="Regex Escape" context="#stay"/>
215
 
                                <DetectChar   char="*"           attribute="Regex Escape" context="#stay"/>
216
 
                                <DetectChar   char="."           attribute="Regex Escape" context="#stay"/>
217
 
                                <DetectChar   char="^"           attribute="Regex Escape" context="#stay"/>
218
 
                                <DetectChar   char="$"           attribute="Regex Escape" context="#stay"/>
219
 
                                <DetectChar   char="["           attribute="Regex Escape" context="#stay"/>
220
 
                                <DetectChar   char="]"           attribute="Regex Escape" context="#stay"/>
221
 
                        </context>
222
 
 
223
 
                        <context name="Comment" attribute="Comment" lineEndContext="BeginningOfLine"/>
224
 
                        <context name="Error"   attribute="Error"   lineEndContext="BeginningOfLine"/>
225
 
                </contexts>
226
 
 
227
 
                <itemDatas>
228
 
                        <itemData name="Normal"           defStyleNum="dsNormal"/>
229
 
 
230
 
                        <itemData name="Regex"            defStyleNum="dsString"/>
231
 
                        <itemData name="Regex Escape"     defStyleNum="dsChar"/>
232
 
                        <itemData name="Replacement"      defStyleNum="dsString"/>
233
 
                        <itemData name="Repl Escape"      defStyleNum="dsChar"/>
234
 
                        <itemData name="Char List"        defStyleNum="dsString"/>
235
 
                        <itemData name="Char List Escape" defStyleNum="dsChar"/>
236
 
                        <itemData name="Separator"        defStyleNum="dsString" color="#00F"/>
237
 
 
238
 
                        <itemData name="Line Number"      defStyleNum="dsDecVal"/>
239
 
                        <itemData name="Step"             defStyleNum="dsDecVal"/>
240
 
                        <itemData name="Last Line"        defStyleNum="dsOthers" color="#808" bold="1"/>
241
 
                        <itemData name="Negation"         defStyleNum="dsOthers" color="#808" bold="1"/>
242
 
 
243
 
                        <itemData name="Command"          defStyleNum="dsKeyword"/>
244
 
                        <itemData name="Label"            defStyleNum="dsFunction"/>
245
 
                        <itemData name="Brace"            defStyleNum="dsNormal"/>
246
 
 
247
 
                        <itemData name="Flag"             defStyleNum="dsDataType"/>
248
 
                        <itemData name="Repl Number"      defStyleNum="dsDecVal"/>
249
 
                        <itemData name="Exit Code"        defStyleNum="dsDecVal"/>
250
 
                        <itemData name="Filename"         defStyleNum="dsBaseN"/>
251
 
                        <itemData name="Wrap Length"      defStyleNum="dsDecVal"/>
252
 
 
253
 
                        <itemData name="Line Continue"    defStyleNum="dsOthers" color="#000" bold="1"/>
254
 
                        <itemData name="Literal Text"     defStyleNum="dsOthers" color="#080" italic="1"/>
255
 
                        <itemData name="Literal Escape"   defStyleNum="dsOthers" color="#0A0" italic="1"/>
256
 
 
257
 
                        <itemData name="Comment"          defStyleNum="dsComment"/>
258
 
                        <itemData name="Error"            defStyleNum="dsError"/>
259
 
                </itemDatas>
260
 
        </highlighting>
261
 
 
262
 
        <general>
263
 
                <comments>
264
 
                        <comment name="singleLine" start="#"/>
265
 
                </comments>
266
 
        </general>
267
 
</language>