blob: e8d953c407c64a02f1e39a8fcc73ff0cfbf3e24c (
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
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Pascal"
section="Sources"
version="1.23"
kateversion="2.5"
extensions="*.p;*.pas;*.pp"
mimetype="text/x-pascal"
priority="8"
indenter="pascal"
author="Unnamed people and Liu Sizhuang([email protected])"
>
<highlighting>
<list name="keywords">
<item> and </item>
<item> array </item>
<item> asm </item>
<item> case </item>
<item> const </item>
<item> div </item>
<item> do </item>
<item> downto </item>
<item> else </item>
<item> file </item>
<item> for </item>
<item> function </item>
<item> goto </item>
<item> if </item>
<item> in </item>
<item> label </item>
<item> mod </item>
<item> nil </item>
<item> not </item>
<item> of </item>
<item> operator </item>
<item> or </item>
<item> packed </item>
<item> procedure </item>
<item> program </item>
<item> record </item>
<item> repeat </item>
<item> set </item>
<item> then </item>
<item> to </item>
<item> type </item>
<item> unit </item>
<item> until </item>
<item> uses </item>
<item> var </item>
<item> while </item>
<item> with </item>
<item> xor </item>
<item> at </item>
<item> automated </item>
<item> break </item>
<item> continue </item>
<item> dispinterface </item>
<item> dispose </item>
<item> exit </item>
<item> false </item>
<item> finalization </item>
<item> initialization </item>
<item> library </item>
<item> new </item>
<item> published </item>
<item> resourcestring </item>
<item> self </item>
<item> true </item>
</list>
<list name="ISO/Delphi Extended">
<item> abstract </item>
<item> as </item>
<item> bindable </item>
<item> constructor </item>
<item> destructor </item>
<item> except </item>
<item> export </item>
<item> finally </item>
<item> import </item>
<item> implementation </item>
<item> inherited </item>
<item> inline </item>
<item> interface </item>
<item> is </item>
<item> module </item>
<item> on </item>
<item> only </item>
<item> otherwise </item>
<item> override </item>
<item> private </item>
<item> property </item>
<item> protected </item>
<item> public </item>
<item> read </item>
<item> qualified </item>
<item> raise </item>
<item> restricted </item>
<item> shl </item>
<item> shr </item>
<item> threadvar </item>
<item> try </item>
<item> virtual </item>
<item> write </item>
</list>
<list name="types">
<item> Integer </item>
<item> Cardinal </item>
<item> ShortInt </item>
<item> SmallInt </item>
<item> LongInt </item>
<item> Int64 </item>
<item> Byte </item>
<item> Word </item>
<item> LongWord </item>
<item> DWord </item>
<item> QWord </item>
<item> Char </item>
<item> AnsiChar </item>
<item> WideChar </item>
<item> Boolean </item>
<item> ByteBool </item>
<item> WordBool </item>
<item> LongBool </item>
<item> Single </item>
<item> Double </item>
<item> Extended </item>
<item> Comp </item>
<item> Currency </item>
<item> Real </item>
<item> Real48 </item>
<item> String </item>
<item> ShortString </item>
<item> AnsiString </item>
<item> WideString </item>
<item> Pointer </item>
<item> Variant</item>
<item> File </item>
<item> Text </item>
</list>
<list name="attention">
<item> FIXME </item>
<item> TODO </item>
<item> NOTE </item>
<item> ### </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<RegExpr attribute="Keyword" context="#stay" String="\b(begin|case|record)(?=(\{[^}]*(\}|$)|\(\*.*(\*\)|$))*([\s]|$|//))" insensitive="true" beginRegion="Region1"/>
<RegExpr attribute="ISO/Delphi Extended" context="#stay" String="\b((object|class)(?=(\(.*\))?(\{[^}]*(\}|$)|\(\*.*(\*\)|$))*;?([\s]|$|//))|try(?=(\{[^}]*(\}|$)|\(\*.*(\*\)|$))*([\s]|$|//)))" insensitive="true" beginRegion="Region1"/>
<RegExpr attribute="Keyword" context="#stay" String="\bend(?=((\{[^}]*(\}|$)|\(\*.*(\*\)|$))*)([.;\s]|$)|//|$)" insensitive="true" endRegion="Region1"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="ISO/Delphi Extended" context="#stay" String="ISO/Delphi Extended"/>
<keyword attribute="Type" context="#stay" String="types"/>
<Float attribute="Number" context="#stay"/>
<Int attribute="Number" context="#stay"/>
<DetectChar attribute="Hex" context="Hex" char="$" />
<DetectChar attribute="String" context="CharNum" char="#" />
<DetectChar attribute="String" context="String" char="'" />
<StringDetect attribute="Directive" context="Prep1" String="(*$"/>
<Detect2Chars attribute="Directive" context="Prep2" char="{" char1="$"/>
<DetectChar attribute="Comment" context="Comment1" char="{" beginRegion="Region2"/>
<Detect2Chars attribute="Comment" context="Comment2" char="(" char1="*" beginRegion="Region3"/>
<Detect2Chars attribute="Comment" context="Comment3" char="/" char1="/"/>
</context>
<context attribute="String" lineEndContext="#pop" name="CharNum">
<DetectChar attribute="Hex" context="HexCharNum" char="$" />
<RegExpr String="[^0-9]" context="#pop"/>
</context>
<context attribute="Hex" lineEndContext="#pop" name="HexCharNum">
<RegExpr String="[^a-fA-F0-9]" context="#pop#pop"/>
</context>
<context attribute="Hex" lineEndContext="#pop" name="Hex">
<RegExpr String="[^a-fA-F0-9]" context="#pop"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<DetectChar attribute="String" context="#pop" char="'"/>
</context>
<context attribute="Directive" lineEndContext="#pop" name="Prep1">
<Detect2Chars attribute="Directive" context="#pop" char="*" char1=")"/>
</context>
<context attribute="Directive" lineEndContext="#pop" name="Prep2">
<DetectChar attribute="Directive" context="#pop" char="}"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Comment1">
<keyword attribute="Alert" context="#stay" String="attention" />
<DetectChar attribute="Comment" context="#pop" char="}" endRegion="Region2"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Comment2">
<keyword attribute="Alert" context="#stay" String="attention" />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1=")" endRegion="Region3"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment3">
<keyword attribute="Alert" context="#stay" String="attention" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Hex" defStyleNum="dsBaseN" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="ISO/Delphi Extended" defStyleNum="dsKeyword" color="#000080" />
<itemData name="Type" defStyleNum="dsDataType"/>
<itemData name="Number" defStyleNum="dsDecVal" />
<itemData name="String" defStyleNum="dsString" />
<itemData name="Directive" defStyleNum="dsOthers" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Alert" defStyleNum="dsAlert" />
</itemDatas>
</highlighting>
<general>
<keywords casesensitive="0" />
<comments>
<comment name="singleLine" start="//" />
<comment name="multiLine" start="{" end="}" />
</comments>
</general>
</language>
|