abl-tmlanguage 1.3.9 → 1.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -3
- package/README.md +44 -41
- package/abl.tmLanguage.json +660 -312
- package/index.js +109 -71
- package/package.json +6 -6
- package/spec/array-extent/issue#5.spec.js +9 -9
- package/spec/blocks/finally-blocks.spec.js +1 -1
- package/spec/comments/spacious-comment.spec.js +73 -0
- package/spec/create-widgets/create-window.spec.js +221 -0
- package/spec/db-table-and-field/create-alias.spec.js +130 -0
- package/spec/db-table-and-field/create-record.spec.js +43 -0
- package/spec/db-table-and-field/find-record.spec.js +91 -0
- package/spec/define/define-browse.spec.js +40 -40
- package/spec/define/define-query.spec.js +14 -13
- package/spec/define-variable/extent.spec.js +501 -6
- package/spec/define-variable/var-statement.spec.js +375 -0
- package/spec/function-call/misc-abl-functions.spec.js +38 -1
- package/spec/function-call/nested-functions.spec.js +1 -1
- package/spec/include/include-file-name.spec.js +224 -0
- package/spec/include/vscode-abl-issue#77.spec.js +2 -2
- package/spec/input-output/input-from.spec.js +501 -0
- package/spec/input-output/output-to.spec.js +456 -0
- package/spec/method-attribute-property-call/get-set-method-name.spec.js +52 -7
- package/spec/method-definition/method.spec.js +184 -0
- package/spec/misc-statements/array-for.spec.js +2 -2
- package/spec/misc-statements/class-in-var-name.spec.js +1 -1
- package/spec/misc-statements/if-then.spec.js +153 -2
- package/spec/misc-statements/record-buffer-functions.spec.js +5 -5
- package/spec/operators/operators.spec.js +5 -5
- package/spec/preprocesors/proparse-preprocessor.spec.js +3 -3
- package/spec/procedure-definition/vscode-abl-issue#26.spec.js +6 -6
- package/spec/strings/translation-attribute.spec.js +1 -1
- package/spec/type-name/parameter-as.spec.js +9 -9
|
@@ -354,4 +354,188 @@ METHOD STATIC LOGICAL XlsxVersCsv
|
|
|
354
354
|
]
|
|
355
355
|
];
|
|
356
356
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
357
|
+
})
|
|
358
|
+
|
|
359
|
+
describe('', () => {
|
|
360
|
+
// This test is to validate that STATIC, PRIVATE and LOGICAL are scoped correctly.
|
|
361
|
+
let statement = `METHOD
|
|
362
|
+
STATIC
|
|
363
|
+
PRIVATE
|
|
364
|
+
LOGICAL
|
|
365
|
+
XlsxVersCsv
|
|
366
|
+
(p-file AS CHARACTER,p-sheetnum AS INT ):`;
|
|
367
|
+
|
|
368
|
+
let expectedTokens = [
|
|
369
|
+
[
|
|
370
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] } // 'METHOD'
|
|
371
|
+
],
|
|
372
|
+
[
|
|
373
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] } // 'STATIC'
|
|
374
|
+
],
|
|
375
|
+
[
|
|
376
|
+
{ "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] } // 'PRIVATE'
|
|
377
|
+
],
|
|
378
|
+
[
|
|
379
|
+
{ "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] } // 'LOGICAL'
|
|
380
|
+
],
|
|
381
|
+
[
|
|
382
|
+
{ "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.function.abl"] } // 'XlsxVersCsv'
|
|
383
|
+
],
|
|
384
|
+
[
|
|
385
|
+
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // '('
|
|
386
|
+
{ "startIndex": 1, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'p-file'
|
|
387
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
388
|
+
{ "startIndex": 8, "endIndex": 10, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'AS'
|
|
389
|
+
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
390
|
+
{ "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'CHARACTER'
|
|
391
|
+
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.method.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
392
|
+
{ "startIndex": 21, "endIndex": 31, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'p-sheetnum'
|
|
393
|
+
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
394
|
+
{ "startIndex": 32, "endIndex": 34, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'AS'
|
|
395
|
+
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
396
|
+
{ "startIndex": 35, "endIndex": 38, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'INT'
|
|
397
|
+
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
398
|
+
{ "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
399
|
+
{ "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
400
|
+
]
|
|
401
|
+
];
|
|
402
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
403
|
+
})
|
|
404
|
+
|
|
405
|
+
describe('', () => {
|
|
406
|
+
// This test is to validate that STATIC, PRIVATE and LOGICAL are scoped correctly.
|
|
407
|
+
let statement = `METHOD
|
|
408
|
+
STATIC
|
|
409
|
+
PRIVATE
|
|
410
|
+
VOID
|
|
411
|
+
XlsxVersCsv
|
|
412
|
+
(p-file AS CHARACTER,p-sheetnum AS INT ):`;
|
|
413
|
+
|
|
414
|
+
let expectedTokens = [
|
|
415
|
+
[
|
|
416
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'METHOD'
|
|
417
|
+
],
|
|
418
|
+
[
|
|
419
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'STATIC'
|
|
420
|
+
],
|
|
421
|
+
[
|
|
422
|
+
{ "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'PRIVATE'
|
|
423
|
+
],
|
|
424
|
+
[
|
|
425
|
+
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'VOID'
|
|
426
|
+
],
|
|
427
|
+
[
|
|
428
|
+
{ "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.function.abl"] }, // 'XlsxVersCsv'
|
|
429
|
+
],
|
|
430
|
+
[
|
|
431
|
+
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // '('
|
|
432
|
+
{ "startIndex": 1, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'p-file'
|
|
433
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
434
|
+
{ "startIndex": 8, "endIndex": 10, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'AS'
|
|
435
|
+
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
436
|
+
{ "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'CHARACTER'
|
|
437
|
+
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.method.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
438
|
+
{ "startIndex": 21, "endIndex": 31, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'p-sheetnum'
|
|
439
|
+
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
440
|
+
{ "startIndex": 32, "endIndex": 34, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'AS'
|
|
441
|
+
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
442
|
+
{ "startIndex": 35, "endIndex": 38, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'INT'
|
|
443
|
+
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
444
|
+
{ "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
445
|
+
{ "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
446
|
+
]
|
|
447
|
+
];
|
|
448
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
449
|
+
})
|
|
450
|
+
|
|
451
|
+
describe('', () => {
|
|
452
|
+
// This test is to validate that STATIC and PRIVATE are scoped correctly. The return type will be scoped as a function, not a type
|
|
453
|
+
let statement = `METHOD
|
|
454
|
+
STATIC
|
|
455
|
+
PRIVATE
|
|
456
|
+
SomeClass
|
|
457
|
+
XlsxVersCsv
|
|
458
|
+
(p-file AS CHARACTER,p-sheetnum AS INT ):`;
|
|
459
|
+
|
|
460
|
+
let expectedTokens = [
|
|
461
|
+
[
|
|
462
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] } // 'METHOD'
|
|
463
|
+
],
|
|
464
|
+
[
|
|
465
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] } // 'STATIC'
|
|
466
|
+
],
|
|
467
|
+
[
|
|
468
|
+
{ "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] } // 'PRIVATE'
|
|
469
|
+
],
|
|
470
|
+
[
|
|
471
|
+
{ "startIndex": 0, "endIndex": 9, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.function.abl"] } // 'SomeClass'
|
|
472
|
+
],
|
|
473
|
+
[
|
|
474
|
+
{ "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.function.abl"] } // 'XlsxVersCsv'
|
|
475
|
+
],
|
|
476
|
+
[
|
|
477
|
+
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // '('
|
|
478
|
+
{ "startIndex": 1, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'p-file'
|
|
479
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
480
|
+
{ "startIndex": 8, "endIndex": 10, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'AS'
|
|
481
|
+
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
482
|
+
{ "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'CHARACTER'
|
|
483
|
+
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.method.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
484
|
+
{ "startIndex": 21, "endIndex": 31, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'p-sheetnum'
|
|
485
|
+
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
486
|
+
{ "startIndex": 32, "endIndex": 34, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'AS'
|
|
487
|
+
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
488
|
+
{ "startIndex": 35, "endIndex": 38, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'INT'
|
|
489
|
+
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
490
|
+
{ "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
491
|
+
{ "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
492
|
+
]
|
|
493
|
+
];
|
|
494
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
495
|
+
})
|
|
496
|
+
|
|
497
|
+
describe('', () => {
|
|
498
|
+
// This test is to validate that STATIC, PRIVATE and return type are scoped correctly.
|
|
499
|
+
let statement = `METHOD
|
|
500
|
+
STATIC
|
|
501
|
+
PRIVATE
|
|
502
|
+
Package.SomeClass
|
|
503
|
+
XlsxVersCsv
|
|
504
|
+
(p-file AS CHARACTER,p-sheetnum AS INT ):`;
|
|
505
|
+
|
|
506
|
+
let expectedTokens = [
|
|
507
|
+
[
|
|
508
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] } // 'METHOD'
|
|
509
|
+
],
|
|
510
|
+
[
|
|
511
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] } // 'STATIC'
|
|
512
|
+
],
|
|
513
|
+
[
|
|
514
|
+
{ "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] } // 'PRIVATE'
|
|
515
|
+
],
|
|
516
|
+
[
|
|
517
|
+
{ "startIndex": 0, "endIndex": 17, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] } // 'Package.SomeClass'
|
|
518
|
+
],
|
|
519
|
+
[
|
|
520
|
+
{ "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.function.abl"] } // 'XlsxVersCsv'
|
|
521
|
+
],
|
|
522
|
+
[
|
|
523
|
+
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // '('
|
|
524
|
+
{ "startIndex": 1, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'p-file'
|
|
525
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
526
|
+
{ "startIndex": 8, "endIndex": 10, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'AS'
|
|
527
|
+
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
528
|
+
{ "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'CHARACTER'
|
|
529
|
+
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.method.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
530
|
+
{ "startIndex": 21, "endIndex": 31, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'p-sheetnum'
|
|
531
|
+
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
532
|
+
{ "startIndex": 32, "endIndex": 34, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'AS'
|
|
533
|
+
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
534
|
+
{ "startIndex": 35, "endIndex": 38, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'INT'
|
|
535
|
+
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
536
|
+
{ "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
537
|
+
{ "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
538
|
+
]
|
|
539
|
+
];
|
|
540
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
357
541
|
})
|
|
@@ -7,13 +7,13 @@ describe('', () => {
|
|
|
7
7
|
{ "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "keyword.other.abl"] }, // 'DISPLAY'
|
|
8
8
|
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
9
9
|
{ "startIndex": 8, "endIndex": 15, "scopes": ["source.abl", "variable.other.abl"] }, // 'myArray'
|
|
10
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.array.literal.abl", "
|
|
10
|
+
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
|
|
11
11
|
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '1'
|
|
12
12
|
{ "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
|
|
13
13
|
{ "startIndex": 18, "endIndex": 21, "scopes": ["source.abl", "meta.array.literal.abl", "keyword.other.abl"] }, // 'FOR'
|
|
14
14
|
{ "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
|
|
15
15
|
{ "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '4'
|
|
16
|
-
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.array.literal.abl", "
|
|
16
|
+
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
|
|
17
17
|
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "punctuation.terminator.abl"] }, // '.'
|
|
18
18
|
{ "startIndex": 25, "endIndex": 56, "scopes": ["source.abl", "comment.line.double-slash.abl"] } // '// with and frame are variables'
|
|
19
19
|
];
|
|
@@ -168,7 +168,7 @@ END.`;
|
|
|
168
168
|
[
|
|
169
169
|
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
|
|
170
170
|
{ "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
|
|
171
|
-
{ "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
|
|
171
|
+
{ "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
|
|
172
172
|
{ "startIndex": 9, "endIndex": 15, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'LOOKUP'
|
|
173
173
|
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
174
174
|
{ "startIndex": 16, "endIndex": 33, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'hist-trn.h-status'
|
|
@@ -149,7 +149,7 @@ describe('', () => {
|
|
|
149
149
|
let statement = `if string(1) = "1" then .`;
|
|
150
150
|
let expectedTokens = [
|
|
151
151
|
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
|
|
152
|
-
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
|
|
152
|
+
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
|
|
153
153
|
{ "startIndex": 3, "endIndex": 9, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'string'
|
|
154
154
|
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
155
155
|
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '1'
|
|
@@ -168,7 +168,6 @@ describe('', () => {
|
|
|
168
168
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
169
169
|
})
|
|
170
170
|
|
|
171
|
-
|
|
172
171
|
describe('', () => {
|
|
173
172
|
let statement = `if this-object:MethodName /* ticket-id */ and
|
|
174
173
|
valid-handlE(hDataset) then
|
|
@@ -210,3 +209,155 @@ describe('', () => {
|
|
|
210
209
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
211
210
|
})
|
|
212
211
|
|
|
212
|
+
describe('', () => {
|
|
213
|
+
let statement = ` /* Point to a valid window handle. */
|
|
214
|
+
ASSIGN p_Window = IF VALID-HANDLE( p_Window ) THEN
|
|
215
|
+
p_Window
|
|
216
|
+
ELSE IF VALID-HANDLE( CURRENT-WINDOW ) THEN
|
|
217
|
+
CURRENT-WINDOW
|
|
218
|
+
ELSE
|
|
219
|
+
DEFAULT-WINDOW.`;
|
|
220
|
+
let expectedTokens = [
|
|
221
|
+
[
|
|
222
|
+
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
223
|
+
{ "startIndex": 4, "endIndex": 6, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
|
|
224
|
+
{ "startIndex": 6, "endIndex": 39, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' Point to a valid window handle. '
|
|
225
|
+
{ "startIndex": 39, "endIndex": 41, "scopes": ["source.abl", "comment.block.source.abl"] } // '*/'
|
|
226
|
+
],
|
|
227
|
+
[
|
|
228
|
+
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
229
|
+
{ "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'ASSIGN'
|
|
230
|
+
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
|
|
231
|
+
{ "startIndex": 11, "endIndex": 19, "scopes": ["source.abl", "variable.other.abl"] }, // 'p_Window'
|
|
232
|
+
{ "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
|
|
233
|
+
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
234
|
+
{ "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
|
|
235
|
+
{ "startIndex": 22, "endIndex": 24, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
|
|
236
|
+
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
|
|
237
|
+
{ "startIndex": 25, "endIndex": 37, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'VALID-HANDLE'
|
|
238
|
+
{ "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
239
|
+
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
|
|
240
|
+
{ "startIndex": 39, "endIndex": 47, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'p_Window'
|
|
241
|
+
{ "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
|
|
242
|
+
{ "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
|
|
243
|
+
{ "startIndex": 49, "endIndex": 50, "scopes": ["source.abl"] }, // ' '
|
|
244
|
+
{ "startIndex": 50, "endIndex": 54, "scopes": ["source.abl", "keyword.other.abl"] } // 'THEN'
|
|
245
|
+
],
|
|
246
|
+
[
|
|
247
|
+
{ "startIndex": 0, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
248
|
+
{ "startIndex": 24, "endIndex": 32, "scopes": ["source.abl", "variable.other.abl"] } // 'p_Window'
|
|
249
|
+
],
|
|
250
|
+
[
|
|
251
|
+
{ "startIndex": 0, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
|
|
252
|
+
{ "startIndex": 22, "endIndex": 26, "scopes": ["source.abl", "keyword.other.abl"] }, // 'ELSE'
|
|
253
|
+
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl"] }, // ' '
|
|
254
|
+
{ "startIndex": 27, "endIndex": 29, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
|
|
255
|
+
{ "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
|
|
256
|
+
{ "startIndex": 30, "endIndex": 42, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'VALID-HANDLE'
|
|
257
|
+
{ "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
258
|
+
{ "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
|
|
259
|
+
{ "startIndex": 44, "endIndex": 58, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'CURRENT-WINDOW'
|
|
260
|
+
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
|
|
261
|
+
{ "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
|
|
262
|
+
{ "startIndex": 60, "endIndex": 61, "scopes": ["source.abl"] }, // ' '
|
|
263
|
+
{ "startIndex": 61, "endIndex": 65, "scopes": ["source.abl", "keyword.other.abl"] } // 'THEN'
|
|
264
|
+
],
|
|
265
|
+
[
|
|
266
|
+
{ "startIndex": 0, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
267
|
+
{ "startIndex": 24, "endIndex": 38, "scopes": ["source.abl", "variable.language.abl"] } // 'CURRENT-WINDOW'
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
{ "startIndex": 0, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
|
|
271
|
+
{ "startIndex": 22, "endIndex": 26, "scopes": ["source.abl", "keyword.other.abl"] } // 'ELSE'
|
|
272
|
+
],
|
|
273
|
+
[
|
|
274
|
+
{ "startIndex": 0, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
|
|
275
|
+
{ "startIndex": 25, "endIndex": 39, "scopes": ["source.abl", "variable.language.abl"] }, // 'DEFAULT-WINDOW'
|
|
276
|
+
{ "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
277
|
+
]
|
|
278
|
+
];
|
|
279
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
280
|
+
})
|
|
281
|
+
|
|
282
|
+
describe('', () => {
|
|
283
|
+
let statement = `IF (NOT PlanWeight AND StockSearchToSearchQtySKU <= StockSearchBrokenUpQtySKU) OR
|
|
284
|
+
( PlanWeight AND StockSearchToSearchWeightNet <= StockSearchBrokenUpWeightNet ) THEN message 123.`;
|
|
285
|
+
let expectedTokens = [
|
|
286
|
+
[
|
|
287
|
+
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
|
|
288
|
+
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
|
|
289
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
|
|
290
|
+
{ "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // 'NOT'
|
|
291
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
292
|
+
{ "startIndex": 8, "endIndex": 18, "scopes": ["source.abl", "variable.other.abl"] }, // 'PlanWeight'
|
|
293
|
+
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
|
|
294
|
+
{ "startIndex": 19, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'AND'
|
|
295
|
+
{ "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
|
|
296
|
+
{ "startIndex": 23, "endIndex": 48, "scopes": ["source.abl", "variable.other.abl"] }, // 'StockSearchToSearchQtySKU'
|
|
297
|
+
{ "startIndex": 48, "endIndex": 49, "scopes": ["source.abl"] }, // ' '
|
|
298
|
+
{ "startIndex": 49, "endIndex": 51, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '<='
|
|
299
|
+
{ "startIndex": 51, "endIndex": 52, "scopes": ["source.abl"] }, // ' '
|
|
300
|
+
{ "startIndex": 52, "endIndex": 77, "scopes": ["source.abl", "variable.other.abl"] }, // 'StockSearchBrokenUpQtySKU'
|
|
301
|
+
{ "startIndex": 77, "endIndex": 78, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
302
|
+
{ "startIndex": 78, "endIndex": 79, "scopes": ["source.abl"] }, // ' '
|
|
303
|
+
{ "startIndex": 79, "endIndex": 81, "scopes": ["source.abl", "keyword.other.abl"] } // 'OR'
|
|
304
|
+
],
|
|
305
|
+
[
|
|
306
|
+
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
|
|
307
|
+
{ "startIndex": 1, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
|
|
308
|
+
{ "startIndex": 2, "endIndex": 12, "scopes": ["source.abl", "variable.other.abl"] }, // 'PlanWeight'
|
|
309
|
+
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
|
|
310
|
+
{ "startIndex": 13, "endIndex": 16, "scopes": ["source.abl", "keyword.other.abl"] }, // 'AND'
|
|
311
|
+
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
|
|
312
|
+
{ "startIndex": 17, "endIndex": 45, "scopes": ["source.abl", "variable.other.abl"] }, // 'StockSearchToSearchWeightNet'
|
|
313
|
+
{ "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
|
|
314
|
+
{ "startIndex": 46, "endIndex": 48, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '<='
|
|
315
|
+
{ "startIndex": 48, "endIndex": 49, "scopes": ["source.abl"] }, // ' '
|
|
316
|
+
{ "startIndex": 49, "endIndex": 77, "scopes": ["source.abl", "variable.other.abl"] }, // 'StockSearchBrokenUpWeightNet'
|
|
317
|
+
{ "startIndex": 77, "endIndex": 78, "scopes": ["source.abl"] }, // ' '
|
|
318
|
+
{ "startIndex": 78, "endIndex": 79, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
319
|
+
{ "startIndex": 79, "endIndex": 80, "scopes": ["source.abl"] }, // ' '
|
|
320
|
+
{ "startIndex": 80, "endIndex": 84, "scopes": ["source.abl", "keyword.other.abl"] }, // 'THEN'
|
|
321
|
+
{ "startIndex": 84, "endIndex": 85, "scopes": ["source.abl"] }, // ' '
|
|
322
|
+
{ "startIndex": 85, "endIndex": 92, "scopes": ["source.abl", "keyword.other.abl"] }, // 'message'
|
|
323
|
+
{ "startIndex": 92, "endIndex": 93, "scopes": ["source.abl"] }, // ' '
|
|
324
|
+
{ "startIndex": 93, "endIndex": 96, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '123'
|
|
325
|
+
{ "startIndex": 96, "endIndex": 97, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
326
|
+
]
|
|
327
|
+
];
|
|
328
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
329
|
+
})
|
|
330
|
+
|
|
331
|
+
describe('', () => {
|
|
332
|
+
let statement = `assign cFormattedString = cFormattedString + cChar
|
|
333
|
+
iFormattedLength = iFormattedLength + 1.`;
|
|
334
|
+
let expectedTokens = [
|
|
335
|
+
[
|
|
336
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'assign'
|
|
337
|
+
{ "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
|
|
338
|
+
{ "startIndex": 7, "endIndex": 23, "scopes": ["source.abl", "variable.other.abl"] }, // 'cFormattedString'
|
|
339
|
+
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
340
|
+
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
341
|
+
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
|
|
342
|
+
{ "startIndex": 26, "endIndex": 42, "scopes": ["source.abl", "variable.other.abl"] }, // 'cFormattedString'
|
|
343
|
+
{ "startIndex": 42, "endIndex": 43, "scopes": ["source.abl"] }, // ' '
|
|
344
|
+
{ "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '+'
|
|
345
|
+
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl"] }, // ' '
|
|
346
|
+
{ "startIndex": 45, "endIndex": 50, "scopes": ["source.abl", "variable.other.abl"] } // 'cChar'
|
|
347
|
+
],
|
|
348
|
+
[
|
|
349
|
+
{ "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
|
|
350
|
+
{ "startIndex": 7, "endIndex": 23, "scopes": ["source.abl", "variable.other.abl"] }, // 'iFormattedLength'
|
|
351
|
+
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
352
|
+
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
353
|
+
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
|
|
354
|
+
{ "startIndex": 26, "endIndex": 42, "scopes": ["source.abl", "variable.other.abl"] }, // 'iFormattedLength'
|
|
355
|
+
{ "startIndex": 42, "endIndex": 43, "scopes": ["source.abl"] }, // ' '
|
|
356
|
+
{ "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '+'
|
|
357
|
+
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl"] }, // ' '
|
|
358
|
+
{ "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '1'
|
|
359
|
+
{ "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
360
|
+
]
|
|
361
|
+
];
|
|
362
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
363
|
+
})
|
|
@@ -59,11 +59,11 @@ describe('', () => {
|
|
|
59
59
|
{ "startIndex": 3, "endIndex": 7, "scopes": ["source.abl", "keyword.other.abl"] }, // 'else'
|
|
60
60
|
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
61
61
|
{ "startIndex": 8, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
|
|
62
|
-
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
|
|
63
|
-
{ "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "support.function.abl"] }, // 'ambiguous'
|
|
64
|
-
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
|
|
65
|
-
{ "startIndex": 21, "endIndex": 34, "scopes": ["source.abl", "
|
|
66
|
-
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
62
|
+
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
|
|
63
|
+
{ "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'ambiguous'
|
|
64
|
+
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
65
|
+
{ "startIndex": 21, "endIndex": 34, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 's2k.bCustomer'
|
|
66
|
+
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
|
|
67
67
|
{ "startIndex": 35, "endIndex": 36, "scopes": ["source.abl"] }, // ' '
|
|
68
68
|
{ "startIndex": 36, "endIndex": 40, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
|
|
69
69
|
{ "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
@@ -98,11 +98,11 @@ else if Not v_string matches "bar" then .`;
|
|
|
98
98
|
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'else'
|
|
99
99
|
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
|
|
100
100
|
{ "startIndex": 5, "endIndex": 7, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
|
|
101
|
-
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
102
|
-
{ "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "
|
|
103
|
-
{ "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
|
|
104
|
-
{ "startIndex": 12, "endIndex": 23, "scopes": ["source.abl", "variable.other.abl"] }, // 'v_condition'
|
|
105
|
-
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
101
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
|
|
102
|
+
{ "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'NOT'
|
|
103
|
+
{ "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
104
|
+
{ "startIndex": 12, "endIndex": 23, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'v_condition'
|
|
105
|
+
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
|
|
106
106
|
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
|
|
107
107
|
{ "startIndex": 25, "endIndex": 29, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
|
|
108
108
|
{ "startIndex": 29, "endIndex": 30, "scopes": ["source.abl"] }, // ' '
|
|
@@ -20,9 +20,9 @@ assign attrValue = BuildAttributeValue(string(attribNames[attribLoop]), annoData
|
|
|
20
20
|
{ "startIndex": 39, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'string'
|
|
21
21
|
{ "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
22
22
|
{ "startIndex": 46, "endIndex": 57, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'attribNames'
|
|
23
|
-
{ "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // '['
|
|
24
|
-
{ "startIndex": 58, "endIndex": 68, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'attribLoop'
|
|
25
|
-
{ "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ']'
|
|
23
|
+
{ "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
|
|
24
|
+
{ "startIndex": 58, "endIndex": 68, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "variable.other.abl"] }, // 'attribLoop'
|
|
25
|
+
{ "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
|
|
26
26
|
{ "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
|
|
27
27
|
{ "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
28
28
|
{ "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
@@ -9,12 +9,12 @@ end procedure.`;
|
|
|
9
9
|
|
|
10
10
|
let expectedTokens = [
|
|
11
11
|
[
|
|
12
|
-
{ "startIndex": 0, "endIndex": 9, "scopes": ["source.abl", "
|
|
13
|
-
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"
|
|
14
|
-
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "
|
|
15
|
-
{ "startIndex": 11, "endIndex": 38, "scopes": ["source.abl", "
|
|
16
|
-
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "
|
|
17
|
-
{ "startIndex": 39, "endIndex": 41, "scopes": ["source.abl", "
|
|
12
|
+
{ "startIndex": 0, "endIndex": 9, "scopes": ["source.abl", "keyword.other.abl"] }, // 'procedure'
|
|
13
|
+
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
|
|
14
|
+
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
|
|
15
|
+
{ "startIndex": 11, "endIndex": 38, "scopes": ["source.abl", "string.single.complex.abl"] }, // 'TpFrame.TaskPanel.ItemClick'
|
|
16
|
+
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
|
|
17
|
+
{ "startIndex": 39, "endIndex": 41, "scopes": ["source.abl", "string.single.complex.abl", "support.other.abl"] }, // ':U'
|
|
18
18
|
{ "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
19
19
|
],
|
|
20
20
|
[
|
|
@@ -9,7 +9,7 @@ describe('', () => {
|
|
|
9
9
|
let expectedTokens = [
|
|
10
10
|
[
|
|
11
11
|
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
|
|
12
|
-
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
|
|
12
|
+
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
|
|
13
13
|
{ "startIndex": 3, "endIndex": 15, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'valid-object'
|
|
14
14
|
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
15
15
|
{ "startIndex": 16, "endIndex": 26, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'oEventArgs'
|
|
@@ -57,7 +57,7 @@ describe('', () => {
|
|
|
57
57
|
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'method'
|
|
58
58
|
{ "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
59
59
|
{ "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'public'
|
|
60
|
-
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl"
|
|
60
|
+
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
61
61
|
{ "startIndex": 14, "endIndex": 39, "scopes": ["source.abl", "meta.define.method.abl", "meta.generic.abl", "entity.name.type.abl"] }, // 'Progress.Collections.List'
|
|
62
62
|
{ "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.method.abl", "meta.generic.abl", "punctuation.definition.generic.begin.abl"] }, // '<'
|
|
63
63
|
{ "startIndex": 40, "endIndex": 46, "scopes": ["source.abl", "meta.define.method.abl", "meta.generic.abl", "entity.name.type.abl"] }, // 'String'
|
|
@@ -84,7 +84,7 @@ describe('', () => {
|
|
|
84
84
|
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'method'
|
|
85
85
|
{ "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
86
86
|
{ "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'public'
|
|
87
|
-
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl"
|
|
87
|
+
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
88
88
|
{ "startIndex": 14, "endIndex": 39, "scopes": ["source.abl", "meta.define.method.abl", "meta.generic.abl", "entity.name.type.abl"] }, // 'Progress.Collections.List'
|
|
89
89
|
{ "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.method.abl", "meta.generic.abl", "punctuation.definition.generic.begin.abl"] }, // '<'
|
|
90
90
|
{ "startIndex": 40, "endIndex": 46, "scopes": ["source.abl", "meta.define.method.abl", "meta.generic.abl", "entity.name.type.abl"] }, // 'String'
|
|
@@ -536,12 +536,12 @@ describe('', () => {
|
|
|
536
536
|
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
537
537
|
],
|
|
538
538
|
[
|
|
539
|
-
{ "startIndex": 0, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
540
|
-
{ "startIndex": 24, "endIndex": 27, "scopes": ["source.abl", "keyword.other.abl"] }, // 'var'
|
|
541
|
-
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl"] }, // ' '
|
|
542
|
-
{ "startIndex": 28, "endIndex": 31, "scopes": ["source.abl", "storage.type.abl"] }, // 'int'
|
|
543
|
-
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
|
|
544
|
-
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "
|
|
539
|
+
{ "startIndex": 0, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
540
|
+
{ "startIndex": 24, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
|
|
541
|
+
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
542
|
+
{ "startIndex": 28, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'int'
|
|
543
|
+
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
544
|
+
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'i'
|
|
545
545
|
{ "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
546
546
|
],
|
|
547
547
|
[
|
|
@@ -889,7 +889,7 @@ describe('', () => {
|
|
|
889
889
|
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'method'
|
|
890
890
|
{ "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
891
891
|
{ "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'public'
|
|
892
|
-
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl"
|
|
892
|
+
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
893
893
|
{ "startIndex": 14, "endIndex": 19, "scopes": ["source.abl", "meta.define.method.abl", "meta.generic.abl", "entity.name.type.abl"] }, // 'Tuple'
|
|
894
894
|
{ "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.define.method.abl", "meta.generic.abl", "punctuation.definition.generic.begin.abl"] }, // '<'
|
|
895
895
|
{ "startIndex": 20, "endIndex": 23, "scopes": ["source.abl", "meta.define.method.abl", "meta.generic.abl", "entity.name.type.abl"] }, // 'foo'
|