summaryrefslogtreecommitdiffstats
path: root/kate/data/asp.xml
blob: 459cd1d6579441ab9159db66e7e4bb1c7e3be735 (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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE  language SYSTEM "language.dtd">
<language name="ASP" version="1.04" kateversion="2.3" section="Markup" extensions="*.asp;" mimetype="text/x-asp-src;text/x-asp-src" author="Antonio Salazar ([email protected])" license="LGPL">
    <highlighting>
        <list name="control structures">
            <item>select</item>
            <item>case</item>
            <item>end select</item>

            <item>if</item>
            <item>then</item>
            <item>else</item>
            <item>elseif</item>
            <item>end if</item>


            <item>while</item>
            <item>do</item>
            <item>until</item>
            <item>loop</item>
            <item>wend</item>

            <item>for</item>
            <item>each</item>
            <item>to</item>
            <item>in</item>
            <item>next</item>

            <item>exit</item>
            <item>continue</item>
        </list>
        <list name="keywords">
            <item>dim</item>
            <item>redim</item>
            <item>preserve</item>

            <item>const</item>
            <item>erase</item>
            <item>nothing</item>
            <item>set</item>

            <item>new</item>
            <item>me</item>


            <item>function</item>
            <item>sub</item>
            <item>call</item>

            <item>class</item>
            <item>private</item>
            <item>public</item>
            <item>with</item>

            <item>randomize</item>

            <item>open</item>
            <item>close</item>
            <item>movenext</item>
            <item>execute</item>
            <item>eof</item>

            <item>not</item>
            <item>true</item>
            <item>false</item>
            <item>or</item>
            <item>and</item>
            <item>xor</item>
        </list>
        <list name="functions">
            <item>response</item>
            <item>write</item>
            <item>redirect</item>
            <item>end</item>

            <item>request</item>
            <item>form</item>
            <item>querystring</item>
            <item>servervariables</item>
            <item>cookies</item>

            <item>session</item>

            <item>server</item>
            <item>createobject</item>

            <item>abs</item>
            <item>array</item>
            <item>asc</item>
            <item>atn</item>
            <item>cbool</item>
            <item>cbyte</item>
            <item>ccur</item>
            <item>cdate</item>
            <item>cdbl</item>
            <item>chr</item>
            <item>cint</item>
            <item>clng</item>
            <item>cos</item>
            <item>csng</item>
            <item>cstr</item>
            <item>date</item>
            <item>dateadd</item>

            <item>DateDiff</item>
            <item>DatePart</item>
            <item>DateSerial</item>
            <item>DateValue</item>
            <item>Date</item>
            <item>Day</item>
            <item>Exp</item>
            <item>Filter</item>
            <item>Fix</item>
            <item>FormatCurrency</item>
            <item>FormatDateTime</item>
            <item>FormatNumber</item>
            <item>FormatPercent</item>

            <item>GetObject</item>
            <item>Hex</item>
            <item>Hour</item>
            <item>InputBox</item>
            <item>InStr</item>
            <item>InStrRev</item>
            <item>Int</item>
            <item>IsArray</item>
            <item>IsDate</item>
            <item>IsEmpty</item>
            <item>IsNull</item>
            <item>IsNumeric</item>
            <item>IsObject</item>
            <item>Join</item>
            <item>LBound</item>
            <item>LCase</item>

            <item>Left</item>
            <item>Len</item>
            <item>LoadPicture</item>
            <item>Log</item>
            <item>LTrim</item>
            <item>Mid</item>
            <item>Minute</item>
            <item>Month</item>
            <item>MonthName</item>
            <item>MsgBox</item>
            <item>Now</item>
            <item>Oct</item>
            <item>Replace</item>

            <item>RGB</item>
            <item>Right</item>
            <item>Rnd</item>
            <item>Round</item>
            <item>RTrim</item>

            <item>ScriptEngine</item>
            <item>ScriptEngineBuildVersion</item>
            <item>ScriptEngineMajorVersion</item>
            <item>ScriptEngineMinorVersion</item>
            <item>Second</item>
            <item>Sgn</item>
            <item>Sin</item>
            <item>Space</item>
            <item>Split</item>
            <item>Sqr</item>
            <item>StrComp</item>
            <item>StrReverse</item>
            <item>String</item>
            <item>Tan</item>
            <item>Time</item>
            <item>Timer</item>
            <item>TimeSerial</item>
            <item>TimeValue</item>
            <item>Trim</item>
            <item>TypeName</item>
            <item>UBound</item>
            <item>UCase</item>
            <item>VarType</item>
            <item>Weekday</item>
            <item>WeekdayName</item>
            <item>Year</item>

            <item>Add</item>
            <item>AddFolders</item>
            <item>BuildPath</item>
            <item>Clear</item>
            <item>Close</item>
            <item>Copy</item>
            <item>CopyFile</item>
            <item>CopyFolder</item>
            <item>CreateFolder</item>
            <item>CreateTextFile</item>
            <item>Delete</item>
            <item>DeleteFile</item>
            <item>DeleteFolder</item>
            <item>DriveExists</item>
            <item>Exists</item>
            <item>FileExists</item>
            <item>FolderExists</item>
            <item>GetAbsolutePathName</item>
            <item>GetBaseName</item>
            <item>GetDrive</item>
            <item>GetDriveName</item>
            <item>GetExtensionName</item>
            <item>GetFile</item>
            <item>GetFileName</item>
            <item>GetFolder</item>
            <item>GetParentFolderName</item>

            <item>GetSpecialFolder</item>
            <item>GetTempName</item>
            <item>Items</item>
            <item>item</item>
            <item>Keys</item>
            <item>Move</item>
            <item>MoveFile</item>
            <item>MoveFolder</item>
            <item>OpenAsTextStream</item>
            <item>OpenTextFile</item>
            <item>Raise</item>
            <item>Read</item>
            <item>ReadAll</item>
            <item>ReadLine</item>
            <item>Remove</item>
            <item>RemoveAll</item>
            <item>Skip</item>
            <item>SkipLine</item>
            <item>Write</item>
            <item>WriteBlankLines</item>
            <item>WriteLine</item>
        </list>
            <contexts>
            <context name="nosource" attribute="Normal Text" lineEndContext="#stay">
                <StringDetect attribute="Keyword" context="aspsource" String="&lt;%" />
                <RegExpr attribute="HTML Tag" context="aspsource" String="&lt;\s*script\s*language=&quot;VBScript&quot;[^&gt;]*&gt;" insensitive="true" />
                <RegExpr attribute="HTML Tag" context="scripts" String="&lt;\s*script(\s|&gt;)" insensitive="true" />
                <RegExpr attribute="HTML Tag" context="htmltag" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
                <StringDetect attribute="HTML Comment" context="htmlcomment" String="&lt;!--" />
            </context>

            <context name="aspsource" attribute="ASP Text" lineEndContext="#stay">
                <StringDetect attribute="Keyword" context="#pop" String="%&gt;" />
                <RegExpr attribute="HTML Tag" context="#pop" String="&lt;\s*\/\s*script\s*&gt;" insensitive="true" />
                <DetectChar attribute="Comment" context="asp_onelinecomment" char="'" />
                <DetectChar attribute="String" context="doublequotestring" char="&quot;" />
                <DetectChar attribute="String" context="singlequotestring" char="&#39;" />
                <DetectChar attribute="Keyword" context="#stay" char="&amp;" />
                <RegExpr attribute="String" context="" String="" />
                <RegExpr attribute="String" context="#stay" String="[0123456789]*\.\.\.[0123456789]*" />
                <HlCOct attribute="Octal" context="#stay" />
                <HlCHex attribute="Hex" context="#stay" />
                <Float attribute="Float" context="#stay" />
                <Int attribute="Decimal" context="#stay" />
                <AnyChar attribute="Other" context="#stay" String=";()}{:,[]" />
                <keyword attribute="Other" context="#stay" String="Others" />

                <RegExpr attribute="Control Structures" context="#stay" String="\belseif\b" insensitive="true" beginRegion="iffi1" endRegion="iffi1"/>
                <RegExpr attribute="Control Structures" context="#stay" String="\belse\b" insensitive="true" beginRegion="iffi1" endRegion="iffi1"/>
                <RegExpr attribute="Control Structures" context="#stay" String="\bif\b" insensitive="true" beginRegion="iffi1"/>
                <RegExpr attribute="Control Structures" context="#stay" String="\bend if\b" insensitive="true" endRegion="iffi1"/>

                <RegExpr attribute="Keyword" context="#stay" String="\bexit function\b" insensitive="true" />
                <RegExpr attribute="Keyword" context="#stay" String="\bfunction\b" insensitive="true" beginRegion="funendfun1"/>
                <RegExpr attribute="Keyword" context="#stay" String="\bend function\b" insensitive="true" endRegion="funendfun1"/>

                <RegExpr attribute="Keyword" context="#stay" String="\bexit sub\b" insensitive="true" />
                <RegExpr attribute="Keyword" context="#stay" String="\bsub\b" insensitive="true" beginRegion="subendsub1"/>
                <RegExpr attribute="Keyword" context="#stay" String="\bend sub\b" insensitive="true" endRegion="subendsub1"/>

                <RegExpr attribute="Keyword" context="#stay" String="\bclass\b" insensitive="true" beginRegion="classendclass1"/>
                <RegExpr attribute="Keyword" context="#stay" String="\bend class\b" insensitive="true" endRegion="classendclass1"/>

                <RegExpr attribute="Control Structures" context="#stay" String="\bexit do\b" insensitive="true" />
                <RegExpr attribute="Control Structures" context="#stay" String="\bdo(\s+(while))?\b" insensitive="true" beginRegion="doloop1"/>
                <RegExpr attribute="Control Structures" context="#stay" String="\bloop\b" insensitive="true" endRegion="doloop1"/>

                <RegExpr attribute="Control Structures" context="#stay" String="\bexit while\b" insensitive="true" />
                <RegExpr attribute="Control Structures" context="#stay" String="\bwhile\b" insensitive="true" beginRegion="whilewend1"/>
                <RegExpr attribute="Control Structures" context="#stay" String="\bwend\b" insensitive="true" endRegion="whilewend1"/>

                <RegExpr attribute="Control Structures" context="#stay" String="\bexit for\b" insensitive="true" />
                <RegExpr attribute="Control Structures" context="#stay" String="\bfor\b" insensitive="true" beginRegion="fornext1"/>
                <RegExpr attribute="Control Structures" context="#stay" String="\bnext\b" insensitive="true" endRegion="fornext1"/>

                <RegExpr attribute="Control Structures" context="#stay" String="\bselect case\b" insensitive="true" beginRegion="selcase1"/>
                <RegExpr attribute="Control Structures" context="#stay" String="\bend select\b" insensitive="true" endRegion="selcase1"/>

                <keyword attribute="Keyword" context="#stay" String="keywords" />
                <keyword attribute="Control Structures" context="#stay" String="control structures" />
                <keyword attribute="Function" context="#stay" String="functions" />
            </context>
            <context name="asp_onelinecomment" attribute="Comment" lineEndContext="#pop">
                <StringDetect attribute="Keyword" context="#pop#pop" String="%&gt;" />
            </context>
            <context name="doublequotestring" attribute="String" lineEndContext="#stay">
                <Detect2Chars attribute="Escape Code" context="#stay" char="&quot;" char1="&quot;" />
                <RegExpr attribute="Escape Code" context="#stay" String="\\[0-7]{1,3}" />
                <RegExpr attribute="Escape Code" context="#stay" String="\\x[0-9A-Fa-f]{1,2}" />
                <DetectChar attribute="String" context="#pop" char="&quot;" />
            </context>
            <context name="singlequotestring" attribute="String" lineEndContext="#stay">
                <Detect2Chars attribute="Escape Code" context="#stay" char="'" char1="'"/>
                <DetectChar attribute="String" context="#pop" char="'" />
            </context>
            <context name="htmltag" attribute="Identifier" lineEndContext="#stay">
                <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1="&gt;" />
                <DetectChar attribute="HTML Tag" context="#pop" char="&gt;"/>
                <StringDetect attribute="Keyword" context="aspsource" String="&lt;%" />
                <StringDetect attribute="Keyword" context="aspsource" String="&lt;%" />
                <RegExpr attribute="Identifier" context="identifiers" String="\s*=\s*"/>
            </context>
            <context name="htmlcomment" attribute="HTML Comment" lineEndContext="#stay">
                <StringDetect attribute="Keyword" context="aspsource" String="&lt;%" />
                <StringDetect attribute="Keyword" context="aspsource" String="&lt;%" />
                <StringDetect attribute="HTML Comment" context="#pop" String="--&gt;" />
                <RegExpr attribute="Normal Text" context="identifiers" String="\s*=\s*"/>
            </context>
            <context name="identifiers" attribute="Identifier" lineEndContext="#stay">
                <RegExpr attribute="String" context="#pop" String="\s*#?[a-zA-Z0-9]*" />
                <DetectChar attribute="Types" context="types1" char="'" />
                <DetectChar attribute="Types" context="types2" char="&quot;" />
            </context>

            <context name="types1" attribute="Types" lineEndContext="#stay">
                <StringDetect attribute="Keyword" context="aspsource" String="&lt;%" />
                <StringDetect attribute="Keyword" context="aspsource" String="&lt;%" />
                <DetectChar attribute="Types" context="#pop#pop" char="'" />
            </context>

            <context name="types2" attribute="Types" lineEndContext="#stay">
                <StringDetect attribute="Keyword" context="aspsource" String="&lt;%" />
                <StringDetect attribute="Keyword" context="aspsource" String="&lt;%" />
                <DetectChar attribute="Types" context="#pop#pop" char="&quot;" />
            </context>

            <context name="scripts" attribute="Normal Text" lineEndContext="#stay">
                <Detect2Chars attribute="Comment" context="scripts_onelinecomment" char="/" char1="/" />
                <Detect2Chars attribute="Comment" context="twolinecomment" char="/" char1="*" />
                <keyword attribute="Control Structures" context="#stay" String="control structures" />
                <keyword attribute="Keyword" context="#stay" String="keywords" />
                <keyword attribute="Function" context="#stay" String="functions" />
                <StringDetect attribute="Keyword" context="aspsource" String="&lt;%"/>
                <RegExpr attribute="HTML Tag" context="#pop" String="&lt;\s*\/\s*script\s*&gt;" insensitive="true" />

                <DetectChar attribute="String" context="doublequotestring" char="&quot;" />
                <DetectChar attribute="String" context="singlequotestring" char="&#39;" />
                <HlCOct attribute="Octal" context="#stay" />
                <HlCHex attribute="Hex" context="#stay" />
                <Float attribute="Float" context="#stay" />
                <Int attribute="Decimal" context="#stay" />
                <DetectChar attribute="Normal Text" context="#stay" char="{" beginRegion="Brace1" />
                <DetectChar attribute="Normal Text" context="#stay" char="}" endRegion="Brace1" />
                <AnyChar attribute="Other" context="#stay" String=";()}{:,[]" />
                <keyword attribute="Other" context="#stay" String="Others" />
            </context>
            <context name="scripts_onelinecomment" attribute="Comment" lineEndContext="#pop">
                <RegExpr attribute="HTML Tag" context="#pop#pop" String="&lt;\s*\/\s*script\s*&gt;" insensitive="true" />
            </context>
            <context name="twolinecomment" attribute="Comment" lineEndContext="#stay">
                <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment" />
            </context>

        </contexts>
        <itemDatas>
            <itemData name="Normal Text" defStyleNum="dsNormal" />
            <itemData name="ASP Text" defStyleNum="dsNormal" />
            <itemData name="Keyword" defStyleNum="dsKeyword" />
            <itemData name="Function" defStyleNum="dsKeyword" color="#0000FF" selColor="#00ffff" bold="0" italic="0"/>
            <itemData name="Decimal" defStyleNum="dsDecVal" />
            <itemData name="Octal" defStyleNum="dsBaseN" />
            <itemData name="Hex" defStyleNum="dsBaseN" />
            <itemData name="Float" defStyleNum="dsFloat" />
            <itemData name="String" defStyleNum="dsString" />
            <itemData name="Comment" defStyleNum="dsComment" />
            <itemData name="Variable" defStyleNum="dsKeyword" color="#5555FF" selColor="#ffffff" bold="0" italic="0" />
            <itemData name="Control Structures" defStyleNum="dsKeyword" color="#A1A100" selColor="#ffffff" bold="0" italic="0" />
            <itemData name="Escape Code" defStyleNum="dsKeyword" color="#0F0F8F" selColor="#ffffff" bold="1" italic="0" />
            <itemData name="Other" defStyleNum="dsOthers" />

            <itemData name="HTML Tag" defStyleNum="dsKeyword" color="#0F0000" selColor="#ffffff" bold="1" italic="0" />
            <itemData name="HTML Comment" defStyleNum="dsComment" />
            <itemData name="Identifier" defStyleNum="dsOthers" />
            <itemData name="Types" defStyleNum="dsDataType" />
        </itemDatas>
    </highlighting>
    <general>
        <comments>
            <comment name="singleLine" start="'" />
            <comment name="multiLine" start="/*" end="*/" />
        </comments>
        <keywords casesensitive="0" weakDeliminator=""/>
    </general>
</language>