-
Notifications
You must be signed in to change notification settings - Fork 11
/
oeABL.sublime-syntax
609 lines (530 loc) · 22.6 KB
/
oeABL.sublime-syntax
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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
%YAML 1.2
---
name: ABL
file_extensions: [p, i, cls, y]
scope: source.abl
variables:
classNames: '((com|dao|val)\.([a-z]+\.[a-z]+))'
dataTypes: '(blob|character|clob|datetime-tz|datetime|date|decimal|handle|integer|int64|logical|longchar|memptr|Progress.Lang.Object|void)'
modifier: '(override|private|protected|public)'
accessmode: '(?i)\b(private|protected|public|static)\b'
sharedmode: '(?i)\b(new|global|shared)\b'
ident: '[A-Za-z_][A-Za-z_0-9]*'
contexts:
main: # note - the order does matter. define first, code last.
- include: defines
- include: mainblock
- include: doblock
- include: classes
- include: constructor
- include: methods
- include: code
classes:
- match: \b(class)\b
scope: keyword.control.source.abl
set: classDefine
- match: '(end class)(\.)'
captures:
1: keyword.control.source.abl
2: text.other.source.abl
classDefine:
- match: \b[a-z.]+\b
scope: entity.name.function.abl
push: classDefine2
classDefine2:
- match: \b(inherits|implements)\b
scope: keyword.control.source.abl
- match: \b[a-z\.]+\b
scope: variable.other.synergy.source.abl
- match: ':'
scope: text.other.source.abl
set: main
code: # summury code include
- include: codeIncludes
- include: comments
- include: constants
- include: functionWords
- include: keywords
- include: namesClasses
- include: namesFileField
- include: strings
- include: namesVariables
- include: procedures
codeIncludes: # code includes
- match: '{&' # preprocessor
push: codeIncludesEnd
- match: '{' # include
push: codeIncludesEnd
codeIncludesEnd:
- meta_scope: support.function.source.abl
- include: strings
- match: '}'
pop: true
comments: # code comments - openEdge style
- match: //.*$
scope: comment.block.source.abl
- match: /\*
push: commentBlock
commentBlock:
- meta_scope: comment.block.source.abl
- match: /\*
set: commentNested
- match: \*/
pop: true
commentNested:
- meta_scope: invalid.source.abl
- match: \*/
set: commentBlock
constants:
# html colors
- match: '#[0-9a-fA-F]{6}\s+'
scope: constant.numeric.source.abl
# numbers only - not for hex codes which never show up in ABL
- match: \b\d+\b
scope: constant.numeric.source.abl
# boolean conditions.
- match: (?i)\s(=|eq|<|lt|>|gt|<=|le|>=|ge|<>)\s
scope: constant.character.source.abl
# simple constants
- match: (?i)\b(and|false|in|(?<!-)no(?!-)|not|now|of|on|or|to|today|true|yes)\b
scope: constant.language.source.abl
# math operators
- match: (\+|\-|\*|/)
scope: constant.character.math.operator.source.abl
# keyword As & Like:
# not sure about this one...
# - match: (\.|:)
# scope: punctuation.string.testing
constructor:
- match: '(constructor)\s+{{modifier}}*\s*([a-z][a-zA-Z]+)(\(\):)'
captures:
1: keyword.control.import.source.abl
2: entity.name.function.abl
3: text.other.source.abl
push: constructorDefine
- match: '(destructor)\s({{modifier}}*\s*)?([a-z][a-zA-Z]+)(\(\):)'
captures:
1: keyword.control.import.source.abl
2: keyword.control.import.source.abl
3: entity.name.function.abl
4: text.other.source.abl
push: constructorDefine
- match: '(constructor|destructor)\s+{{modifier}}\s+([a-z][a-zA-Z]+)(\n)'
captures:
1: keyword.control.import.source.abl
2: keyword.control.source.abl
3: entity.name.function.abl
push: constructorParameters
constructorDefine:
- include: doblock
- include: code
- match: '(end )(constructor|destructor)(\.)'
captures:
1: keyword.control.import.source.abl
2: keyword.control.import.source.abl
3: text.other.source.abl
set: main
constructorParameters:
- match: '\('
scope: text.other.source.abl
- include: defineAll
- include: code
- match: '\):'
scope: text.other.source.abl
set: constructorDefine
defines:
- match: \bdefine\b
scope: keyword.other.source.abl
- match: '{{sharedmode}}'
scope: keyword.other.source.abl
- match: '{{accessmode}}'
scope: keyword.other.source.abl
- match: \bbuffer\b
scope: storage.modifier.source.abl
push: defineBuffer
- match: \bproperty\b
scope: storage.modifier.source.abl
push: defineProperty
- match: \bvariable\b
scope: storage.modifier.source.abl
push: defineVariable
defineAll:
- match: \b(format|initial|init|no-undo)\b
scope: keyword.other.source.abl
- match: \b(as|for|like)\b
scope: constant.other.source.abl
- include: namesClasses
- include: namesFileField
- include: namesTypes
- include: namesVariables
- include: strings
defineBuffer:
- include: defineAll
- match: \.$
scope: text.other.source.abl
pop: true
defineProperty:
- include: defineAll
- match: '{{accessmode}}'
scope: keyword.other.source.abl
- match: \b(get)(\(\):)
captures:
1: keyword.other.source.abl
2: text.other.source.abl
push: definePropertyGet
- match: (\bget)(\.$)
captures:
1: keyword.other.source.abl
2: text.other.source.abl
- match: \b(set)(\.$)
captures:
1: keyword.other.source.abl
2: text.other.source.abl
set: main
definePropertyGet:
- include: code
- match: \bend get\.$
scope: keyword.other.source.abl
pop: true
defineVariable:
- include: defineAll
- match: \.($|\s)
scope: text.other.source.abl
pop: true
doblock:
- match: \b(do|for|repeat)\b
scope: keyword.control.import.source.abl
push: doblockend
doblockend:
- include: doblock
- include: code
- match: \b(end)(\.)
captures:
1: keyword.control.import.source.abl
2: text.other.source.abl
pop: true
functionWords: # common component methods
- match: \b(addToList|addToQuery|fetchField|fetchRecord|getInit|initBegin|initBuild|initClass|initEnd|queueMessage|setInit|setMember|updateRecord)\b
scope: text.custom.source.abl
keywords: # OpenEdge keywords
# conditional keywords
- match: \b(if|then|else|return)\b
scope: keyword.control.import.source.abl
- match: \b(case|end case|otherwise|when)\b
scope: keyword.control.import.source.abl
# Other keywords - A - B
- match: (?i)\b(absolute|add-interval|add-new-field|alert-box|alias|ambiguous|any-printable|apply|asc|assign|at|available)\b
scope: keyword.other.class.source.abl
- match: (?i)\b(begins|bell|browse|buffer|buffer-field)\b
scope: keyword.other.class.source.abl
# Other keywords - C
- match: (?i)\b(call|can-do|can-find|can-query|can-set|caps|cast|catch|choose|chr|clear|close|codepage-convert|color|combo-box|compare|compile|connect|connected|count-of|create|current|current-changed|current-language|current-result-row|current-value)\b
scope: keyword.other.class.source.abl
# Other keywords - D
- match: (?i)\b(dataservers|datetime-tz|datetime|date|daydbcodepage|dbcollation|dbname|dbparam|dbrestrictions|dbtaskid|dbtype|dbversion|decimal|delete|delimiter|dictionary|disable|disconnect|display|down|dynamic-function|dynamic-new)\b
scope: keyword.other.class.source.abl
# Other keywords - E - F
- match: (?i)\b(each|editing|editor|empty temp-table|enable|encode|entered|entry|error|etime|exclusive-lock|exp|export|extent)\b
scope: keyword.other.class.source.abl
- match: \b(fill|finally|final|find|first-of|first|for|form|frame)\b
scope: keyword.other.class.source.abl
# Other keywords - G
- match: (?i)\b(gateways|get|get-bits|get-byte|get-byte-order|get-bytes|get-codepages|get-collations|get-double|get-float|get-key-value|get-long|get-pointer-value|get-short|get-size|get-string|get-unsigned-short|go-pending)\b
scope: keyword.other.class.source.abl
# Other keywords - H - I
- match: (?i)\b(hex-encode|hide|image|implements|import|index|inherits|input\s+(clear|close|from|through)?|insert|integer|interface|interval|is-attr-space|is-lead-byte)\b
scope: keyword.other.class.source.abl
# Other keywords - K - L
- match: (?i)\b(kblabel|keycode|keyfunction|keylable|keyword|keyword-all|last|lastkey|last-of|lc|ldbname|leave|left-trim|length|library|lin-counter|list-(events|query-attrs|set-attrs|widgets)|load|load-picture|locked|log|lookup|lower)\b
scope: keyword.other.class.source.abl
# Other keywords - M - N
- match: (?i)\b(matches|maximum|max|md5-digest|member|message|message-lines|minimum|modulo|month|)\b
scope: keyword.other.class.source.abl
- match: (?i)\b(new|next|next-prompt|next-value|no-apply|no-error|no-lock|no-wait|num-aliases|num-dbs|num-entries|num-results)\b
scope: keyword.other.class.source.abl
# Other keywords - O
- match: (?i)\b(open query|opsys|os-(append|command|copy|create-dir|delete|drives|error|getenv|rename)|object|output|overlay)\b
scope: keyword.other.class.source.abl
# Other keywords - P
- match: (?i)\b(page|page-number|page-size|pause|pdbname|preselect|private-data|proc-handle|proc-status|process
events|program-name|projpt-for|promsgs|propath|proversion|publish|put cursor|put
screen|put-(bits|bytes|byte|double|float|key-value|long|short|string|unsigned-short))\b
scope: keyword.other.class.source.abl
# Other keywords - R & S & T
- match: \b(repeat|routine-level|run|save|screen-value|self|sensitive|string|super|transaction|throw)\b
scope: keyword.other.class.source.abl
# Other keywords - U & v
- match: (?i)\b(undo|upper|userid|use-widget-pool|using|valid-handle|valid-object|value-changed|view-as|visible|where|widget)\b
scope: keyword.other.class.source.abl
mainblock:
- match: '(?i)(main(\-)?block):'
scope: entity.name.function.abl
methods:
- match: '(method\s+){{modifier}}\s+(final\s+)?{{dataTypes}}\s+([a-z][a-zA-Z]+)(\s*\(\):)'
captures:
1: keyword.control.import.source.abl
2: keyword.control.source.abl
3: keyword.control.source.abl
4: storage.modifier.abl
5: entity.name.function.abl
6: text.other.source.abl
push: methodsDefine
- match: '(method\s+){{modifier}}\s+(final\s+)?{{dataTypes}}\s+([a-z][a-zA-Z]+)'
captures:
1: keyword.control.import.source.abl
2: keyword.control.source.abl
3: keyword.control.source.abl
4: storage.modifier.abl
5: entity.name.function.abl
push: methodsParameters
methodsDefine:
- include: defines
- include: code
- match: '\b(end method)(\.)'
captures:
1: keyword.control.import.source.abl
2: text.other.source.abl
pop: true
methodsParameters:
- match: '\('
scope: text.other.source.abl
- include: defineAll
- include: doblock
- include: code
- match: '\):'
scope: text.other.source.abl
set: methodsDefine
namesClasses:
- match: \b{{classNames}}\b
scope: text.other.source.abl
namesFileField:
- match: \b([a-zA-Z0-9\-_]+\.[a-zA-Z\-_]+)\b
scope: text.other.source.abl
namesTypes:
- match: \b{{dataTypes}}\b
scope: storage.type.source.abl
namesVariables: # variable & properties - Synergy naming conventions
- match: \b(b|h|i|o|p|tt|v)(-|[A-Z])[a-zA-Z0-9_-]+\b
scope: variable.other.synergy.source.abl
- match: \b(bf|br|fr|hl|lv|sv)(-|[A-Z])[a-zA-Z0-9_-]+\b # legacy varible names
scope: variable.other.synergy.source.abl
procedures:
- match: '(procedure)\s([a-zA-Z/]+)(:)'
captures:
1: keyword.control.import.source.abl
2: entity.name.function.abl
3: text.other.source.abl
- match: '(end procedure)(\.)'
captures:
1: keyword.control.import.source.abl
2: text.other.source.abl
strings: # quoted strings
- match: '"'
scope: text.quotes.source.abl
push: stringDoubleQuote
- match: "'"
scope: text.quotes.source.abl
push: stringSingleQuote
stringDoubleQuote:
- meta_content_scope: string.double.source.abl
- match: '"'
scope: text.quotes.source.abl
pop: true
stringSingleQuote:
- meta_content_scope: string.single.source.abl
- match: "'"
scope: text.quotes.source.abl
pop: true
# - name: entity.testing
# match: 'entity:'
# - comment: constructor/destructor method
# scope: meta.function.source.abl
# match: (?i)(constructor|destructor)\s+((private|protected|public)\s+)?([a-z]+)
# captures:
# '1': {scope: entity.name.function.abl}
# '2': {scope: storage.modifier.abl}
# '3': {scope: storage.modifier.abl}
# '4': {scope: entity.name.hidden.abl}
# - comment: function
# scope: meta.function.source.abl
# - match: (?i)(function)\s+([a-z0-9_-]+)\s+(returns)\s+(character|datetime-tz|datetime|date|decimal|integer|int64|logical|longchar|memptr)(\s+)?(\(|\n)
# captures:
# '1': {scope: keyword.control.source.abl}
# '2': {scope: entity.name.function.abl}
# '3': {scope: keyword.other.source.abl}
# '4': {scope: storage.type.datatype.abl}
# - comment: main block
# scope: meta.function.source.abl
# - match: '(?i)(main(\-)?block):'
# captures:
# '1': {scope: entity.name.function.abl}
# - comment: procedure
# scope: meta.function.source.abl
# - match: (?i)(procedure)\s+([a-z0-9\/_-]+)(:|\(|\n)
# captures:
# '1': {scope: keyword.control.source.abl}
# '2': {scope: entity.name.function.abl}
# - scope: support.type.exception.testing
# - match: 'exception:'
# - scope: keyword.testing
# - match: 'keyword:'
# - comment: Accumulate keywords
# scope: keyword.other.class.source.abl
# - match: (?i)\b(accumulate|accum|averate|count|maximum|minimum|total|sub-average|sub-count|sub-maximum|sub-minimum|sub-total|lable|by)\b
# - comment: ends keywords.
# - match: (?i)(end)(\s+(case|class|constructor|destructor|finally|function|interface|method|procedure))?\.
# captures:
# '1': {scope: keyword.control.end.source.abl}
# '2': {scope: keyword.control.end.source.abl}
# - comment: Find & For keywords
# scope: keyword.other.class.source.abl
# - match: (?i)\b(can-find(\((first|last|prev))?|find\s+(first|last|prev)?|for\s+(each|first|last)|by|descending|exclusive-lock|exclusive|no-lock|no-wait|of|share-lock|transaction|use-index|using|where|while)\b
# - comment: format & frame keywords
# scope: keyword.other.frames.source.abl
# - match: (?i)\b(as|attr-space|auto-return|bgcolor|blank|cancel-button|centered|colon|column-label|columns|column|context-help|context-help-file|dcolor|deblank|default-buttone|disable-auto-zap|down|fgcolor|font|format|frame|help|keep-tab-order|label|no-attr-space|no-box|no-help|no-hide|no-labels|no-tab-stop|no-underline|no-validate|overlay|page-bottom|page-top|pfcolor|retain|row|screen-id|stream-io|scrollable|scroll|side-labels|skip|stream|three-d|top-only|to|use-dect-exps|use-text|v6frame|validate|view-as
# dialog-box|width|with)\b
# - comment: message keywords
# scope: keyword.other.class.source.abl
# - match: (?i)\b(message|auto-return|buttons|color|in window|set|skip|title|update|view-as
# alert-box)\b
# - comment: on block keywords
# scope: keyword.other.class.source.abl
# - match: (?i)\b(on|endkey|error|quit|stop|anywhere|leave|next|no-apply|override|persistent
# run|retry|return|revert|undo)\b
# - comment: output keywords
# scope: keyword.other.class.source.abl
# - match: (?i)\b(output|append|binary|close|collate|convert|echo|keep-messages|landscape|map|no-convert|no-echo|no-map|num-copies|paged|page-size|portrait|printer|stream|terminal|through|to|unbuffered|value)\b
# - comment: put keywords
# scope: keyword.other.class.source.abl
# - match: (?i)\b(put|attr-space|color|column|control|cursor|format|no-attr-space|off|row|skip|screen|stream|unformatted)\b
# - comment: class keywords.
# scope: keyword.other.class.source.abl
# - match: (?i)\b(super)\b
# - comment: control keywords.
# scope: keyword.control.source.abl
# - match: (?i)\b(repeat|return|then|transaction:?|when)\b
# - comment: general keywords.
# scope: keyword.other.statement.source.abl
# - match: (?i)\b(object|output\s+(close|thru|through|to)|put(\sunformatted)?|replace|routine-level|substitute|substring|throw|triggers
# for load of|trim|undo|update|valid-handle|valid-object)\b
# - comment: query keywords.
# scope: keyword.other.statement.source.abl
# - match: (?i)\b(query|table|temp-table)\b
# - comment: buffer attributes
# scope: keyword.other.statement.source.abl
# - match: (?i):(adm-data|available|can-create|can-delete|can-read|can-write|current-changed|dbname|handle|locked|name|new|next-sibling|num-fields|primary|private-data|recid|record-length|rowid|table|table-handle|table-number|type|unique-id)\b
# - comment: buffer methods
# scope: keyword.other.statement.source.abl
# - match: (?i):(buffer-compare|buffer-copy|buffer-create|buffer-delete|buffer-field|buffer-release|empty-temp-table|find-by-rowid|index-information|raw-transfer)\b
# - comment: buffer field attributes
# scope: keyword.other.statement.source.abl
# - match: (?i):(adm-data|buffer-handle|buffer-name|buffer-value|can-read|can-write|case-sensitive|column-label|data-type|dbname|extent|format|handle|mandatory|name|position|private-data|read-only|string-value|table|type|unique-id|validate-expression|validate-message|width-chars)\b
# - comment: error and error-statu attributes & methods
# scope: keyword.other.statement.source.abl
# - match: (?i)(error-status|error|no-error|num-message|type|get-message|get-number)|(:(apperror|syserror|getMessage|numMessages|returnValue))\b
# - comment: query attributes
# scope: keyword.other.statement.source.abl
# - match: (?i):(adm-data|cache|current-result-row|handle|index-information|is-open|name|num-buffers|num-results|prepare-string|private-data|query-off-end|skip-deleted-record|type)\b
# - comment: query methods
# scope: keyword.other.statement.source.abl
# - match: (?i):(add-buffer|create-result-list-entry|delete-result-list-entry|get-buffer-handle|get-current|get-first|get-last|get-next|get-prev|set-buffers|query-close|query-open|query-prepare|reposition-backward|reposition-forward|reposition-to-row|reposition-to-rowid)\b
# - comment: temp-table attributes & methods
# scope: keyword.other.statement.source.abl
# - match: (?i):(default-buffer-handle|name|prepared|primary|undo|add-fields-from|add-index-field|add-like-field|add-like-index|add-new-field|add-new-index|clear|create-like|temp-table-prepare)\b
# - scope: storage.testing
# - match: 'storage:'
# - comment: buffer
# - match: (?i)(define\s+buffer)\s+(b|bf)([A-Z][a-zA-Z0-9-]+)\s+(for)\s+([a-zA-Z0-9-]+)
# captures:
# '1': {scope: keyword.other.source.abl}
# '2': {scope: variable.property.abl}
# '3': {scope: variable.property.abl}
# '4': {scope: constant.other.source.abl}
# '5': {scope: text.other.source.abl}
# '6': {scope: text.other.source.abl}
# - comment: parameters - for functions and methods
# - match: (?i)(input)\s+(i|ip)([A-Z][a-zA-Z0-9]+)\s+(as\s+(character|datetime-tz|datetime|date|decimal|integer|int64|logical|longchar|memptr)|(like)\s+([a-zA-Z0-9-]+\.[a-zA-Z0-9_-]+))
# captures:
# '1': {scope: keyword.other.source.abl}
# '2': {scope: variable.other.synergy.abl}
# '3': {scope: variable.other.synergy.abl}
# '4': {scope: constant.other.source.abl}
# '5': {scope: storage.type.source.abl}
# '6': {scope: constant.other.source.abl}
# '7': {scope: text.other.source.abl}
# - comment: parameters - for procedures
# - match: (?i)(define)\s+(input|input-output|output)\s+(parameter)\s+((i|ip|io|o|op)[A-Z][a-zA-Z0-9]+)\s+(as\s+(character|datetime-tz|datetime|date|decimal|integer|int64|logical|longchar|memptr)|(like)\s+([a-zA-Z0-9-\.]+))(\s+no-undo)?\.
# captures:
# '1': {scope: keyword.other.source.abl}
# '2': {scope: keyword.other.source.abl}
# '3': {scope: keyword.other.source.abl}
# '4': {scope: variable.property.abl}
# '5': {scope: variable.property.abl}
# '6': {scope: constant.other.source.abl}
# '7': {scope: storage.type.source.abl}
# '8': {scope: consant.other.source.abl}
# '9': {scope: text.other.source.abl}
# '10': {scope: keyword.other.source.abl}
# - comment: property
# begin: (?i)(define\s+property)
# beginCaptures:
# '1': {scope: keyword.other.source.abl}
# end: (set)\.
# endCaptures:
# '1': {scope: keyword.other.source.abl}
# patterns:
# - scope: keyword.other.source.abl
# - match: (get)
# - include: '#dataTypes'
# - include: '#defineKeywords'
# - include: '#fileField'
# - include: '#keywordAsLike'
# - include: '#objectStatus'
# - include: '#variableNames'
# - comment: query
# - match: (?i)(define\s+query)\s+((q|qy)[A-Z][a-zA-Z0-9-]+)\s+(for)\s+([a-zA-Z0-9-]+)
# captures:
# '1': {scope: keyword.other.source.abl}
# '2': {scope: variable.property.abl}
# '3': {scope: variable.property.abl}
# '4': {scope: constant.other.source.abl}
# '5': {scope: text.other.source.abl}
# - comment: stream
# - match: (?i)(define\s+stream)\s+([a-zA-Z0-9]+)\.
# captures:
# '1': {scope: keyword.other.source.abl}
# '2': {scope: variable.property.abl}
# - scope: storage.type.define.abl
# - match: (?i)\b(define\s+(new\s+)?(shared\s+)?(temp-table|form))\b
# - scope: storage.type.source.abl
# - match: (?i)\b(?<!&)((?<!-)handle|dataset-handle|dataset|field|(?<!-)index|frame
# [a-z]+)(?!\s*\()\b
# - scope: variable.testing
# - match: 'variable:'
# - comment: paramaters - Synergy naming conventions
# scope: variable.other.synergy.source.abl
# - match: \b(i|ip|o|op|io)(-|[A-Z])[a-zA-Z0-9_-]+\b
# - include: '#variableNames'
# - scope: support.function.abl
# - match: (?i)\b(run) ([a-z][a-z0-9_-]*?)\b(\s*\(.*?\))?
# captures:
# '1': {scope: keyword.statement.source.abl}
# '2': {scope: support.function.source.abl}
# repository:
#
# dataTypes:
# comment: data types - ABL specific
# scope: storage.type.source.abl
# - match: \b(blob|character|clob|datetime-tz|datetime|date|decimal|handle|integer|int64|logical|longchar|memptr)\b
# defineKeywords:
# comment: define statment keywords (others)
# scope: keyword.other.source.abl
# - match: \b(format|initial|no-undo)\b
# fileField:
# comment: file.field referencesc
# scope: text.other.source.abl
# - match: \b([a-zA-Z0-9-]+\.[a-zA-Z0-9_-]+)\b
# objectStatus:
# - match: (?i)(private|protected|public)\s+
# captures:
# '1': {scope: storage.modifier.source.abl}