-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDelphi.syn
More file actions
245 lines (236 loc) · 7.01 KB
/
Copy pathDelphi.syn
File metadata and controls
245 lines (236 loc) · 7.01 KB
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
<?xml version="1.0" encoding="utf-8" ?>
<Language Name="Borland Delphi" Startblock="DELPHI Code">
<FileTypes>
<FileType Extension=".pas" Name="Delphi code file"/>
</FileTypes>
<Block Name="DELPHI Code" Style="DELPHI Code" EscapeChar="" IsMultiline="true">
<Scope Start="try" StartIsKeyword="true" End="end" EndIsKeyword="true" Style="DELPHI Keyword" Text="Try..." CauseIndent="true"/>
<Scope Start="case" StartIsKeyword="true" End="end" EndIsKeyword="true" Style="DELPHI Keyword" Text="Case..." CauseIndent="true"/>
<Scope Start="begin" StartIsKeyword="true" End="end" EndIsKeyword="true" Style="DELPHI Keyword" Text="Begin..." CauseIndent="true"/>
<!-- Keywords that can exist inside this block -->
<Keywords>
<PatternGroup Name="Keywords" Style="DELPHI Keyword" CaseSensitive="true">
<Patterns>
absolute
abstract
and
array
as
asm
at
automated
begin
case
cdecl
class
const
constructor
default
deprecated
destructor
dispinterface
div
do
downto
dynamic
else
end
except
export
exports
far
finalization
finally
for
function
goto
if
implementation
in
inherited
initialization
inline
interface
is
label
library
message
mod
near
nil
nodefault
not
object
of
on
or
out
overload
packed
pascal
platform
private
procedure
program
property
protected
public
published
raise
read
record
register
repeat
resourcestring
safecall
set
shl
shr
stdcall
stored
then
threadvar
to
try
type
unit
until
uses
var
while
virtual
with
write
xor
</Patterns>
</PatternGroup>
<PatternGroup Name="Numbers" Style="DELPHI Number">
<Pattern Text="(0x[0-9,a-f,A-F]+)" IsComplex="true" />
<Pattern Text="([0-9]+)" IsComplex="true" />
</PatternGroup>
<!-- Datatypes for c# -->
<PatternGroup Name="DataTypes" Style="DELPHI Datatype" CaseSensitive="true">
<Patterns>
bool
boolean
byte
cardinal
char
comp
double
extended
file
int64
integer
longbool
longint
longword
pchar
pointer
real
shortbool
shortint
single
smallint
string
word
wordbool
</Patterns>
</PatternGroup>
</Keywords>
<!-- Operators that can exist inside this block -->
<Operators>
<PatternGroup name="Operators" Style="DELPHI Operator">
<Pattern Text="." />
<Pattern Text="!" />
<Pattern Text=":" />
<Pattern Text="^" />
<Pattern Text="*" />
<Pattern Text="/" />
<Pattern Text="+" />
<Pattern Text="-" />
<Pattern Text="=" />
<Pattern Text="|" />
<Pattern Text=">" />
<Pattern Text="<" />
</PatternGroup>
</Operators>
<!-- Blocks that can exist inside this block -->
<ChildBlocks>
<Child Name="DELPHI XML Comment" />
<Child Name="DELPHI Multiline Comment" />
<Child Name="DELPHI Singleline Comment" />
<Child Name="DELPHI String" />
<Child Name="DELPHI Char" />
<Child Name="DELPHI Literal String" />
<Child Name="DELPHI Literal Char" />
<Child Name="DELPHI Code" />
</ChildBlocks>
</Block>
<Block Name="DELPHI XML Comment" Style="DELPHI Comment" EscapeChar="" IsMultiline="false">
<Scope Start="///" End="" Style="DELPHI XML Comment" />
<!-- this block can contain xml tags -->
<ChildBlocks>
<Child Name="DELPHI XML Comment Tag" />
</ChildBlocks>
</Block>
<!-- this block is the xml tags in xml comments-->
<Block Name="DELPHI XML Comment Tag" Style="DELPHI XML Tag Text" EscapeChar="" IsMultiline="false">
<Scope Start="<" End=">" Style="DELPHI XML Tag" />
<Operators>
<PatternGroup name="DELPHI XML Attrib" Style="DELPHI XML Attrib">
<!-- operator is the attributes that can exist within xml tags-->
<Pattern Text="( [a-z,A-Z,:]+)" IsComplex="true" />
</PatternGroup>
</Operators>
<ChildBlocks>
<Child Name="XML String" />
</ChildBlocks>
</Block>
<Block Name="XML String" Style="DELPHI XML String" EscapeChar="" IsMultiline="false">
<Scope Start=""" End=""" Style="DELPHI XML String" />
</Block>
<Block Name="DELPHI Multiline Comment" Style="DELPHI Comment" EscapeChar="" IsMultiline="true">
<Scope Start="{" End="}" Style="DELPHI Comment" Text="{...}"/>
<Operators>
<PatternGroup name="URL" Style="DELPHI URL">
<Pattern Text="http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" IsComplex="true" />
</PatternGroup>
</Operators>
</Block>
<Block Name="DELPHI Singleline Comment" Style="DELPHI Comment" EscapeChar="" IsMultiline="false">
<Scope Start="//" End="" Style="DELPHI Comment" />
</Block>
<Block Name="DELPHI String" Style="DELPHI String" EscapeChar="\" IsMultiline="false">
<Scope Start=""" End=""" Style="DELPHI String" />
<Operators>
<PatternGroup name="URL" Style="DELPHI URL">
<Pattern Text="http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" IsComplex="true" />
</PatternGroup>
</Operators>
</Block>
<Block Name="DELPHI Char" Style="DELPHI String" EscapeChar="" IsMultiline="false">
<Scope Start="'" End="'" Style="DELPHI String" />
</Block>
<Block Name="DELPHI Literal String" Style="DELPHI String" EscapeChar="" IsMultiline="true" >
<Scope Start="@"" End=""" Style="DELPHI String" Text="@'...'" />
</Block>
<Block Name="DELPHI Literal Char" Style="DELPHI String" EscapeChar="" IsMultiline="false">
<Scope Start="@'" End="'" Style="DELPHI String" />
</Block>
<Style Name="DELPHI Code" ForeColor="" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="DELPHI Scope" ForeColor="" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="DELPHI Region" ForeColor="blue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="DELPHI XML Comment" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="DELPHI XML Tag" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="DELPHI XML Tag Text" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="DELPHI XML Attrib" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="DELPHI XML String" ForeColor="gray" BackColor="lightyellow" Bold="false" Italic="false" Underline="false" />
<Style Name="DELPHI Comment" ForeColor="darkmagenta" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="DELPHI String" ForeColor="darkblue" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="DELPHI Number" ForeColor="Teal" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="DELPHI Operator" ForeColor="Red" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="DELPHI Keyword" ForeColor="Black" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="DELPHI Datatype" ForeColor="Blue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="DELPHI URL" ForeColor="Blue" BackColor="" Bold="false" Italic="false" Underline="true" />
</Language>