-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
pascal.tmLanguage
243 lines (241 loc) · 7.09 KB
/
pascal.tmLanguage
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>pas</string>
<string>p</string>
<string>pp</string>
<string>dfm</string>
<string>fmx</string>
<string>dpr</string>
<string>dpk</string>
<string>lfm</string>
<string>lpr</string>
</array>
<key>keyEquivalent</key>
<string>^~P</string>
<key>name</key>
<string>Pascal</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\b(?i:(absolute|abstract|add|all|and_then|array|as|asc|asm|assembler|async|attribute|autoreleasepool|await|begin|bindable|block|by|case|cdecl|class|concat|const|constref|copy|cppdecl|contains|default|delegate|deprecated|desc|distinct|div|each|else|empty|end|ensure|enum|equals|event|except|export|exports|extension|external|far|file|finalization|finalizer|finally|flags|forward|from|future|generic|goto|group|has|helper|if|implements|implies|import|in|index|inherited|initialization|inline|interrupt|into|invariants|is|iterator|label|library|join|lazy|lifetimestrategy|locked|locking|loop|mapped|matching|message|method|mod|module|name|namespace|near|nested|new|nostackframe|not|notify|nullable|object|of|old|oldfpccall|on|only|operator|optional|or_else|order|otherwise|out|override|package|packed|parallel|params|partial|pascal|pinned|platform|pow|private|program|protected|public|published|interface|implementation|qualified|queryable|raises|read|readonly|record|reference|register|remove|resident|require|requires|resourcestring|restricted|result|reverse|safecall|sealed|segment|select|selector|sequence|set|shl|shr|skip|specialize|soft|static|stored|stdcall|step|strict|strong|take|then|threadvar|to|try|tuple|type|unconstrained|unit|unmanaged|unretained|unsafe|uses|using|var|view|virtual|volatile|weak|dynamic|overload|reintroduce|where|with|write|xor|yield))\b</string>
<key>name</key>
<string>keyword.pascal</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.type.prototype.pascal</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>entity.name.function.prototype.pascal</string>
</dict>
</dict>
<key>match</key>
<string>\b(?i:(function|procedure|constructor|destructor))\b\s+(\w+(\.\w+)?)(\(.*?\))?;\s*(?=(?i:attribute|forward|external))</string>
<key>name</key>
<string>meta.function.prototype.pascal</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.type.function.pascal</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>entity.name.function.pascal</string>
</dict>
</dict>
<key>match</key>
<string>\b(?i:(function|procedure|constructor|destructor|property|read|write))\b\s+(\w+(\.\w+)?)</string>
<key>name</key>
<string>meta.function.pascal</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(self|result))\b</string>
<key>name</key>
<string>token.variable</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(and|or))\b</string>
<key>name</key>
<string>keyword.operator.pascal</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(break|continue|exit|abort|while|do|downto|for|raise|repeat|until))\b</string>
<key>name</key>
<string>keyword.control.pascal</string>
</dict>
<dict>
<key>begin</key>
<string>\{\$</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>string.regexp</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>name</key>
<string>string.regexp</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(ansichar|ansistring|boolean|byte|cardinal|char|comp|currency|double|dword|extended|file|integer|int8|int16|int32|int64|longint|longword|nativeint|nativeuint|olevariant|pansichar|pchar|pwidechar|pointer|real|shortint|shortstring|single|smallint|string|uint8|uint16|uint32|uint64|variant|widechar|widestring|word|wordbool|uintptr|intptr))\b</string>
<key>name</key>
<string>storage.support.type.pascal</string>
</dict>
<dict>
<key>match</key>
<string>\b(\d+)|(\d*\.\d+([eE][\-+]?\d+)?)\b</string>
<key>name</key>
<string>constant.numeric.pascal</string>
</dict>
<dict>
<key>match</key>
<string>\$[0-9a-fA-F]{1,16}\b</string>
<key>name</key>
<string>constant.numeric.hex.pascal</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(true|false|nil))\b</string>
<key>name</key>
<string>constant.language.pascal</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(Assert))\b</string>
<key>name</key>
<string>keyword.control</string>
</dict>
<dict>
<key>begin</key>
<string>(^[ \t]+)?(?=//)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.comment.leading.pascal</string>
</dict>
</dict>
<key>end</key>
<string>(?!\G)</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>//</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.pascal</string>
</dict>
</dict>
<key>end</key>
<string>\n</string>
<key>name</key>
<string>comment.line.double-slash.pascal.two</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>\(\*</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.pascal</string>
</dict>
</dict>
<key>end</key>
<string>\*\)</string>
<key>name</key>
<string>comment.block.pascal.one</string>
</dict>
<dict>
<key>begin</key>
<string>\{(?!\$)</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.pascal</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>name</key>
<string>comment.block.pascal.two</string>
</dict>
<dict>
<key>begin</key>
<string>'</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.pascal</string>
</dict>
</dict>
<key>end</key>
<string>'</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.pascal</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.single.pascal</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>''</string>
<key>name</key>
<string>constant.character.escape.apostrophe.pascal</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>\#\d+</string>
<key>name</key>
<string>string.other.pascal</string>
</dict>
</array>
<key>scopeName</key>
<string>source.pascal</string>
<key>uuid</key>
<string>F42FA544-6B1C-11D9-9517-000D93589AF6</string>
</dict>
</plist>