abl-tmlanguage 1.3.23 → 1.3.24
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 +5 -0
- package/abl.tmLanguage.json +5 -5
- package/index.mjs +3 -0
- package/package.json +1 -1
- package/spec/run-statement/run-statement.spec.js +327 -0
package/CHANGELOG.md
CHANGED
package/abl.tmLanguage.json
CHANGED
|
@@ -1618,7 +1618,7 @@
|
|
|
1618
1618
|
}
|
|
1619
1619
|
},
|
|
1620
1620
|
"property-get-set-block": {
|
|
1621
|
-
"begin": "\\s*(?<!:)\\s*([Gg][Ee][Tt]|[Ss][Ee][Tt])\\b(?![#$\\-_%&])",
|
|
1621
|
+
"begin": "\\s*(?<!:)\\s*([Gg][Ee][Tt]|[Ss][Ee][Tt])\\b(?![#$\\-_%&])(?=\\()",
|
|
1622
1622
|
"beginCaptures": {
|
|
1623
1623
|
"1": {
|
|
1624
1624
|
"name": "keyword.other.abl"
|
|
@@ -3878,7 +3878,7 @@
|
|
|
3878
3878
|
"name": "keyword.other.abl"
|
|
3879
3879
|
}
|
|
3880
3880
|
},
|
|
3881
|
-
"end": "(?i)(?=\\.|value|set|persistent|single-run|singleton|on|no-error|in|asynchronous|\\()",
|
|
3881
|
+
"end": "(?i)(?=\\.|value|set|persistent|single-run|singleton|on|no-error|in|asynchronous|event-procedure|\\()",
|
|
3882
3882
|
"patterns": [
|
|
3883
3883
|
{
|
|
3884
3884
|
"include": "#string"
|
|
@@ -4538,7 +4538,7 @@
|
|
|
4538
4538
|
},
|
|
4539
4539
|
"keywords-E": {
|
|
4540
4540
|
"comment": "The keyword must not have a trailing variable character (one of #$-_%&)",
|
|
4541
|
-
"match": "(?i)\\b(e(?:ach|cho|dge|dge-pixels?|dge-pixe?|dge-pi?|diting|ditor|ditor-backtab|ditor-tab|lse|mpty|mpty-selection|nable|nd|nd-box-selection|nd-error|nd-key|nd-move|nd-resize|nd-row-resize|nd-search|ndkey|nter-menubar|ntry|num|q|rror|rror-status?|rror-stat|scape|vent|vent-handler|vent-handler-context|vents|xcept|xclusive|xclusive-lock?|xclusive-lo?|xclusive-web-user?|xclusive-web-us?|xclusive-web-?|xecute|xists|xit|xpire|xplicit|xport|xtended|xtent|xternal|xtract))\\b(?![#$\\-_%&])",
|
|
4541
|
+
"match": "(?i)\\b(e(?:ach|cho|dge|dge-pixels?|dge-pixe?|dge-pi?|diting|ditor|ditor-backtab|ditor-tab|lse|mpty|mpty-selection|nable|nd|nd-box-selection|nd-error|nd-key|nd-move|nd-resize|nd-row-resize|nd-search|ndkey|nter-menubar|ntry|num|q|rror|rror-status?|rror-stat|scape|vent|vent-handler|vent-handler-context|vent-procedure|vents|xcept|xclusive|xclusive-lock?|xclusive-lo?|xclusive-web-user?|xclusive-web-us?|xclusive-web-?|xecute|xists|xit|xpire|xplicit|xport|xtended|xtent|xternal|xtract))\\b(?![#$\\-_%&])",
|
|
4542
4542
|
"captures": {
|
|
4543
4543
|
"1": {
|
|
4544
4544
|
"name": "keyword.other.abl"
|
|
@@ -4637,7 +4637,7 @@
|
|
|
4637
4637
|
},
|
|
4638
4638
|
"keywords-P": {
|
|
4639
4639
|
"comment": "The keyword must not have a trailing variable character (one of #$-_%&)",
|
|
4640
|
-
"match": "(?i)\\b(p(?:ackage-private|ackage-protected|age|age-bottom?|age-bott?|age-down|age-left|age-right|age-right-text|age-up|age-width?|age-wid|aged|arameter?|aramet?|aram|arent-id-field|arent-window-close|artial-key|ascal|aste|ause|erformance?|erforman?|erform?|erfo?|fcolor?|fcol?|fc|ick|ick-area|ick-both|ixels|ortrait|recision|reprocess?|reproce?|reselect?|resele?|rev|rev-frame|rev-word|rinter|rinter-setup|rivate|rivileges|rocedure-call-type|rocedure-complete|rocedure?|rocedu?|roce|rocess|rofile-file|rofiler|rompt|rompt-for?|rompt-f|romsgs|ropath|roperty|rotected|ublic|ublish|ut|ut-bits|ut-bytes??|ut-double|ut-float|ut-int64|ut-key-value?|ut-key-val|ut-long|ut-short|ut-string|ut-unsigned-long|ut-unsigned-short|utbyte))\\b(?![#$\\-_%&])",
|
|
4640
|
+
"match": "(?i)\\b(p(?:ackage-private|ackage-protected|age|age-bottom?|age-bott?|age-down|age-left|age-right|age-right-text|age-up|age-width?|age-wid|aged|arameter?|aramet?|aram|arent-id-field|arent-window-close|artial-key|ascal|aste|ause|erformance?|erforman?|erform?|erfo?|ersistent?|ersiste?|fcolor?|fcol?|fc|ick|ick-area|ick-both|ixels|ortrait|recision|reprocess?|reproce?|reselect?|resele?|rev|rev-frame|rev-word|rinter|rinter-setup|rivate|rivileges|rocedure-call-type|rocedure-complete|rocedure?|rocedu?|roce|rocess|rofile-file|rofiler|rompt|rompt-for?|rompt-f|romsgs|ropath|roperty|rotected|ublic|ublish|ut|ut-bits|ut-bytes??|ut-double|ut-float|ut-int64|ut-key-value?|ut-key-val|ut-long|ut-short|ut-string|ut-unsigned-long|ut-unsigned-short|utbyte))\\b(?![#$\\-_%&])",
|
|
4641
4641
|
"captures": {
|
|
4642
4642
|
"1": {
|
|
4643
4643
|
"name": "keyword.other.abl"
|
|
@@ -4664,7 +4664,7 @@
|
|
|
4664
4664
|
},
|
|
4665
4665
|
"keywords-S": {
|
|
4666
4666
|
"comment": "The keyword must not have a trailing variable character (one of #$-_%&)",
|
|
4667
|
-
"match": "(?i)\\b(s(?:ave|ave-as|ax-attributes|ax-complete?|ax-comple|ax-parser-error|ax-reader|ax-running|ax-uninitialized|ax-write-begin|ax-write-complete|ax-write-content|ax-write-element|ax-write-error|ax-write-idle|ax-write-tag|ax-writer|ax-xml|chema|creen|creen-io|croll|croll-bars|croll-horizontal|croll-left|croll-mode|croll-notify|croll-right|croll-vertical|crollable|crollbar-drag|crolled-row-position?|crolled-row-positi?|crolled-row-posi?|crolling|earch-self|earch-target|ection|ecurity-policy|eek|elect|elect-extend|elect-on-join|elect-repositioned-row|elected-items|election|election-extend|election-list|elf|end|ensitive|eparate-connection|eparators|erializable|erialize-hidden|erialize-name|erver|erver-socket|ession|et|et-attr-call-type|et-byte-order|et-cell-focus|et-contents|et-db-logging|et-event-manager-option|et-option|et-pointer-value?|et-pointer-val|et-state|ettings|hare-lock?|hare-lo?|hare-?|hared|hort|how-in-taskbar?|how-in-taskb?|how-stats?|ide-labels?|ide-labe?|ignature|ilent|imple|ingle|ingle-character|ingle-run|ize|ize-chars?|ize-cha?|ize-c|ize-pixels?|ize-pixe?|ize-pi?|kip|kip-group-duplicates|kip-schema-check|lider|mallint|oap-fault|oap-header|oap-header-entryref|ocket|ome|ource|ource-procedure|pace|ql|tart|tart-box-selection|tart-extend-box-selection|tart-mem-check|tart-move|tart-resize|tart-row-resize|tart-search|tarting|tatic|tatus|tatus-area|tatus-area-msg|tdcall|tomp-detection|tomp-frequency|top|top-after|top-display|top-mem-check|tored-procedure?|tored-procedu?|tored-proce?|tream|tream-handle|tream-io|tring-xref|ub-average?|ub-avera?|ub-ave|ub-count|ub-maximum?|ub-maxim?|ub-max|ub-menu|ub-menu-help|ub-minimum?|ub-minim?|ub-min|ub-total|ubscribe|ubstring?|ubstri?|um|ummary|uper|uspend|ystem-dialog|ystem-help))\\b(?![#$\\-_%&])",
|
|
4667
|
+
"match": "(?i)\\b(s(?:ave|ave-as|ax-attributes|ax-complete?|ax-comple|ax-parser-error|ax-reader|ax-running|ax-uninitialized|ax-write-begin|ax-write-complete|ax-write-content|ax-write-element|ax-write-error|ax-write-idle|ax-write-tag|ax-writer|ax-xml|chema|creen|creen-io|croll|croll-bars|croll-horizontal|croll-left|croll-mode|croll-notify|croll-right|croll-vertical|crollable|crollbar-drag|crolled-row-position?|crolled-row-positi?|crolled-row-posi?|crolling|earch-self|earch-target|ection|ecurity-policy|eek|elect|elect-extend|elect-on-join|elect-repositioned-row|elected-items|election|election-extend|election-list|elf|end|ensitive|eparate-connection|eparators|erializable|erialize-hidden|erialize-name|erver|erver-socket|ession|et|et-attr-call-type|et-byte-order|et-cell-focus|et-contents|et-db-logging|et-event-manager-option|et-option|et-pointer-value?|et-pointer-val|et-state|ettings|hare-lock?|hare-lo?|hare-?|hared|hort|how-in-taskbar?|how-in-taskb?|how-stats?|ide-labels?|ide-labe?|ignature|ilent|imple|ingle|ingle-character|ingle-run|ingleton|ize|ize-chars?|ize-cha?|ize-c|ize-pixels?|ize-pixe?|ize-pi?|kip|kip-group-duplicates|kip-schema-check|lider|mallint|oap-fault|oap-header|oap-header-entryref|ocket|ome|ource|ource-procedure|pace|ql|tart|tart-box-selection|tart-extend-box-selection|tart-mem-check|tart-move|tart-resize|tart-row-resize|tart-search|tarting|tatic|tatus|tatus-area|tatus-area-msg|tdcall|tomp-detection|tomp-frequency|top|top-after|top-display|top-mem-check|tored-procedure?|tored-procedu?|tored-proce?|tream|tream-handle|tream-io|tring-xref|ub-average?|ub-avera?|ub-ave|ub-count|ub-maximum?|ub-maxim?|ub-max|ub-menu|ub-menu-help|ub-minimum?|ub-minim?|ub-min|ub-total|ubscribe|ubstring?|ubstri?|um|ummary|uper|uspend|ystem-dialog|ystem-help))\\b(?![#$\\-_%&])",
|
|
4668
4668
|
"captures": {
|
|
4669
4669
|
"1": {
|
|
4670
4670
|
"name": "keyword.other.abl"
|
package/index.mjs
CHANGED
|
@@ -56,6 +56,7 @@ alsoStatements.push('delimiter');
|
|
|
56
56
|
alsoStatements.push('drop-target');
|
|
57
57
|
alsoStatements.push('edge-pixels');
|
|
58
58
|
alsoStatements.push('event-handler');
|
|
59
|
+
alsoStatements.push('event-procedure');
|
|
59
60
|
alsoStatements.push('fgcolor');
|
|
60
61
|
alsoStatements.push('first');
|
|
61
62
|
alsoStatements.push('flat-button');
|
|
@@ -80,6 +81,7 @@ alsoStatements.push('namespace-uri');
|
|
|
80
81
|
alsoStatements.push('nested');
|
|
81
82
|
alsoStatements.push('no-focus');
|
|
82
83
|
alsoStatements.push('page-bottom');
|
|
84
|
+
alsoStatements.push('persistent');
|
|
83
85
|
alsoStatements.push('pfcolor');
|
|
84
86
|
alsoStatements.push('recursive');
|
|
85
87
|
alsoStatements.push('resize');
|
|
@@ -94,6 +96,7 @@ alsoStatements.push('serialize-name');
|
|
|
94
96
|
alsoStatements.push('show-in-taskbar');
|
|
95
97
|
alsoStatements.push('side-labels');
|
|
96
98
|
alsoStatements.push('single-run');
|
|
99
|
+
alsoStatements.push('singleton');
|
|
97
100
|
alsoStatements.push('status-area');
|
|
98
101
|
alsoStatements.push('three-d');
|
|
99
102
|
alsoStatements.push('title');
|
package/package.json
CHANGED
|
@@ -642,3 +642,330 @@ describe('', () => {
|
|
|
642
642
|
];
|
|
643
643
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
644
644
|
})
|
|
645
|
+
|
|
646
|
+
describe('', () => {
|
|
647
|
+
let statement = `run Foo.Bar in vProcedureHandle(input "goodbye").`;
|
|
648
|
+
|
|
649
|
+
let expectedTokens = [
|
|
650
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'run'
|
|
651
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
652
|
+
{ "startIndex": 4, "endIndex": 11, "scopes": ["source.abl", "entity.name.procedure.abl"] }, // 'Foo.Bar'
|
|
653
|
+
{ "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
|
|
654
|
+
{ "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "keyword.other.abl"] }, // 'in'
|
|
655
|
+
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
|
|
656
|
+
{ "startIndex": 15, "endIndex": 31, "scopes": ["source.abl", "variable.other.abl"] }, // 'vProcedureHandle'
|
|
657
|
+
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
658
|
+
{ "startIndex": 32, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'input'
|
|
659
|
+
{ "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
660
|
+
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
661
|
+
{ "startIndex": 39, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'goodbye'
|
|
662
|
+
{ "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
663
|
+
{ "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
664
|
+
{ "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
665
|
+
];
|
|
666
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
667
|
+
})
|
|
668
|
+
|
|
669
|
+
describe('', () => {
|
|
670
|
+
let statement = `run foo.p persistent set vProcedureHandle.
|
|
671
|
+
run Bar in vProcedureHandle(input "hello World").`;
|
|
672
|
+
|
|
673
|
+
let expectedTokens = [
|
|
674
|
+
[
|
|
675
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'run'
|
|
676
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
677
|
+
{ "startIndex": 4, "endIndex": 9, "scopes": ["source.abl", "entity.name.procedure.abl"] }, // 'foo.p'
|
|
678
|
+
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
|
|
679
|
+
{ "startIndex": 10, "endIndex": 20, "scopes": ["source.abl", "keyword.other.abl"] }, // 'persistent'
|
|
680
|
+
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
|
|
681
|
+
{ "startIndex": 21, "endIndex": 24, "scopes": ["source.abl", "keyword.other.abl"] }, // 'set'
|
|
682
|
+
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
|
|
683
|
+
{ "startIndex": 25, "endIndex": 41, "scopes": ["source.abl", "variable.other.abl"] }, // 'vProcedureHandle'
|
|
684
|
+
{ "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
685
|
+
],
|
|
686
|
+
[
|
|
687
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'run'
|
|
688
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
689
|
+
{ "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "entity.name.procedure.abl"] }, // 'Bar'
|
|
690
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
691
|
+
{ "startIndex": 8, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'in'
|
|
692
|
+
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
|
|
693
|
+
{ "startIndex": 11, "endIndex": 27, "scopes": ["source.abl", "variable.other.abl"] }, // 'vProcedureHandle'
|
|
694
|
+
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
695
|
+
{ "startIndex": 28, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'input'
|
|
696
|
+
{ "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
697
|
+
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
698
|
+
{ "startIndex": 35, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'hello World'
|
|
699
|
+
{ "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
700
|
+
{ "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
701
|
+
{ "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
702
|
+
]
|
|
703
|
+
];
|
|
704
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
705
|
+
})
|
|
706
|
+
|
|
707
|
+
describe('', () => {
|
|
708
|
+
let statement = `run gfgg.p persistent set h on oT:GetHdl().`;
|
|
709
|
+
|
|
710
|
+
let expectedTokens = [
|
|
711
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'run'
|
|
712
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
713
|
+
{ "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "entity.name.procedure.abl"] }, // 'gfgg.p'
|
|
714
|
+
{ "startIndex": 10, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
|
|
715
|
+
{ "startIndex": 12, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'persistent'
|
|
716
|
+
{ "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
|
|
717
|
+
{ "startIndex": 23, "endIndex": 26, "scopes": ["source.abl", "keyword.other.abl"] }, // 'set'
|
|
718
|
+
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl"] }, // ' '
|
|
719
|
+
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "variable.other.abl"] }, // 'h'
|
|
720
|
+
{ "startIndex": 28, "endIndex": 29, "scopes": ["source.abl"] }, // ' '
|
|
721
|
+
{ "startIndex": 29, "endIndex": 31, "scopes": ["source.abl", "keyword.other.abl"] }, // 'on'
|
|
722
|
+
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
|
|
723
|
+
{ "startIndex": 32, "endIndex": 34, "scopes": ["source.abl", "variable.other.abl"] }, // 'oT'
|
|
724
|
+
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
725
|
+
{ "startIndex": 35, "endIndex": 41, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'GetHdl'
|
|
726
|
+
{ "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
727
|
+
{ "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
728
|
+
{ "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
729
|
+
];
|
|
730
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
731
|
+
})
|
|
732
|
+
|
|
733
|
+
describe('', () => {
|
|
734
|
+
let statement = `run adfasf.p EVENT-PROCEDURE "event-internal-procedure".
|
|
735
|
+
run adfasf.p EVENT-PROCEDURE 'event-internal-procedure':u.`;
|
|
736
|
+
|
|
737
|
+
let expectedTokens = [
|
|
738
|
+
[
|
|
739
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'run'
|
|
740
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
741
|
+
{ "startIndex": 4, "endIndex": 12, "scopes": ["source.abl", "entity.name.procedure.abl"] }, // 'adfasf.p'
|
|
742
|
+
{ "startIndex": 12, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
|
|
743
|
+
{ "startIndex": 14, "endIndex": 29, "scopes": ["source.abl", "keyword.other.abl"] }, // 'EVENT-PROCEDURE'
|
|
744
|
+
{ "startIndex": 29, "endIndex": 30, "scopes": ["source.abl"] }, // ' '
|
|
745
|
+
{ "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
746
|
+
{ "startIndex": 31, "endIndex": 55, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'event-internal-procedure'
|
|
747
|
+
{ "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
748
|
+
{ "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
749
|
+
],
|
|
750
|
+
[
|
|
751
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'run'
|
|
752
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
753
|
+
{ "startIndex": 4, "endIndex": 12, "scopes": ["source.abl", "entity.name.procedure.abl"] }, // 'adfasf.p'
|
|
754
|
+
{ "startIndex": 12, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
|
|
755
|
+
{ "startIndex": 14, "endIndex": 29, "scopes": ["source.abl", "keyword.other.abl"] }, // 'EVENT-PROCEDURE'
|
|
756
|
+
{ "startIndex": 29, "endIndex": 30, "scopes": ["source.abl"] }, // ' '
|
|
757
|
+
{ "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
|
|
758
|
+
{ "startIndex": 31, "endIndex": 55, "scopes": ["source.abl", "string.quoted.single.abl"] }, // 'event-internal-procedure'
|
|
759
|
+
{ "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
|
|
760
|
+
{ "startIndex": 56, "endIndex": 58, "scopes": ["source.abl", "string.quoted.single.abl", "support.other.abl"] }, // ':u'
|
|
761
|
+
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
762
|
+
]
|
|
763
|
+
];
|
|
764
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
765
|
+
})
|
|
766
|
+
|
|
767
|
+
describe('', () => {
|
|
768
|
+
let statement = `RUN
|
|
769
|
+
extern-proc-name
|
|
770
|
+
SINGLETON SET proc-handle
|
|
771
|
+
ON SERVER session
|
|
772
|
+
TRANSACTION DISTINCT
|
|
773
|
+
ASYNCHRONOUS
|
|
774
|
+
SET async-request-handle
|
|
775
|
+
EVENT-PROCEDURE event-internal-procedure
|
|
776
|
+
IN procedure-context
|
|
777
|
+
EVENT-HANDLER string(event-handler-name:Method())
|
|
778
|
+
EVENT-HANDLER-CONTEXT objRef
|
|
779
|
+
( "abc", objRef) .`;
|
|
780
|
+
|
|
781
|
+
let expectedTokens = [
|
|
782
|
+
[
|
|
783
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] } // 'RUN'
|
|
784
|
+
],
|
|
785
|
+
[
|
|
786
|
+
{ "startIndex": 0, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
|
|
787
|
+
{ "startIndex": 5, "endIndex": 21, "scopes": ["source.abl", "entity.name.procedure.abl"] } // 'extern-proc-name'
|
|
788
|
+
],
|
|
789
|
+
[
|
|
790
|
+
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
791
|
+
{ "startIndex": 4, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'SINGLETON'
|
|
792
|
+
{ "startIndex": 13, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
|
|
793
|
+
{ "startIndex": 15, "endIndex": 18, "scopes": ["source.abl", "keyword.other.abl"] }, // 'SET'
|
|
794
|
+
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
|
|
795
|
+
{ "startIndex": 19, "endIndex": 30, "scopes": ["source.abl", "variable.other.abl"] } // 'proc-handle'
|
|
796
|
+
],
|
|
797
|
+
[
|
|
798
|
+
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
799
|
+
{ "startIndex": 4, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'ON'
|
|
800
|
+
{ "startIndex": 6, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
801
|
+
{ "startIndex": 8, "endIndex": 14, "scopes": ["source.abl", "keyword.other.abl"] }, // 'SERVER'
|
|
802
|
+
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
|
|
803
|
+
{ "startIndex": 15, "endIndex": 22, "scopes": ["source.abl", "variable.language.abl"] } // 'session'
|
|
804
|
+
],
|
|
805
|
+
[
|
|
806
|
+
{ "startIndex": 0, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
807
|
+
{ "startIndex": 8, "endIndex": 19, "scopes": ["source.abl", "keyword.other.abl"] }, // 'TRANSACTION'
|
|
808
|
+
{ "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
|
|
809
|
+
{ "startIndex": 20, "endIndex": 28, "scopes": ["source.abl", "keyword.other.abl"] } // 'DISTINCT'
|
|
810
|
+
],
|
|
811
|
+
[
|
|
812
|
+
{ "startIndex": 0, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
813
|
+
{ "startIndex": 8, "endIndex": 20, "scopes": ["source.abl", "keyword.other.abl"] } // 'ASYNCHRONOUS'
|
|
814
|
+
],
|
|
815
|
+
[
|
|
816
|
+
{ "startIndex": 0, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
|
|
817
|
+
{ "startIndex": 12, "endIndex": 15, "scopes": ["source.abl", "keyword.other.abl"] }, // 'SET'
|
|
818
|
+
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
|
|
819
|
+
{ "startIndex": 16, "endIndex": 36, "scopes": ["source.abl", "variable.other.abl"] } // 'async-request-handle'
|
|
820
|
+
],
|
|
821
|
+
[
|
|
822
|
+
{ "startIndex": 0, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
|
|
823
|
+
{ "startIndex": 12, "endIndex": 27, "scopes": ["source.abl", "keyword.other.abl"] }, // 'EVENT-PROCEDURE'
|
|
824
|
+
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl"] }, // ' '
|
|
825
|
+
{ "startIndex": 28, "endIndex": 52, "scopes": ["source.abl", "variable.other.abl"] } // 'event-internal-procedure'
|
|
826
|
+
],
|
|
827
|
+
[
|
|
828
|
+
{ "startIndex": 0, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
|
|
829
|
+
{ "startIndex": 16, "endIndex": 18, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IN'
|
|
830
|
+
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
|
|
831
|
+
{ "startIndex": 19, "endIndex": 36, "scopes": ["source.abl", "variable.other.abl"] } // 'procedure-context'
|
|
832
|
+
],
|
|
833
|
+
[
|
|
834
|
+
{ "startIndex": 0, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
|
|
835
|
+
{ "startIndex": 12, "endIndex": 25, "scopes": ["source.abl", "keyword.other.abl"] }, // 'EVENT-HANDLER'
|
|
836
|
+
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
|
|
837
|
+
{ "startIndex": 26, "endIndex": 32, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'string'
|
|
838
|
+
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
839
|
+
{ "startIndex": 33, "endIndex": 51, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'event-handler-name'
|
|
840
|
+
{ "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
841
|
+
{ "startIndex": 52, "endIndex": 58, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'Method'
|
|
842
|
+
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
843
|
+
{ "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
|
|
844
|
+
{ "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
|
|
845
|
+
],
|
|
846
|
+
[
|
|
847
|
+
{ "startIndex": 0, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
|
|
848
|
+
{ "startIndex": 15, "endIndex": 36, "scopes": ["source.abl", "keyword.other.abl"] }, // 'EVENT-HANDLER-CONTEXT'
|
|
849
|
+
{ "startIndex": 36, "endIndex": 37, "scopes": ["source.abl"] }, // ' '
|
|
850
|
+
{ "startIndex": 37, "endIndex": 43, "scopes": ["source.abl", "variable.other.abl"] } // 'objRef'
|
|
851
|
+
],
|
|
852
|
+
[
|
|
853
|
+
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] }, // ' '
|
|
854
|
+
{ "startIndex": 1, "endIndex": 2, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
855
|
+
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
856
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
857
|
+
{ "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'abc'
|
|
858
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
859
|
+
{ "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
860
|
+
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
861
|
+
{ "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'objRef'
|
|
862
|
+
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
863
|
+
{ "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
|
|
864
|
+
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
865
|
+
]
|
|
866
|
+
];
|
|
867
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
868
|
+
})
|
|
869
|
+
|
|
870
|
+
describe('', () => {
|
|
871
|
+
let statement = `RUN
|
|
872
|
+
extern-proc-name
|
|
873
|
+
SINGLETON SET proc-handle
|
|
874
|
+
ON SERVER session
|
|
875
|
+
TRANSACTION DISTINCT
|
|
876
|
+
ASYNCHRONOUS
|
|
877
|
+
SET async-request-handle
|
|
878
|
+
EVENT-PROCEDURE event-internal-procedure
|
|
879
|
+
IN procedure-context
|
|
880
|
+
EVENT-HANDLER string(event-handler-name:Method())
|
|
881
|
+
EVENT-HANDLER-CONTEXT this-procedure
|
|
882
|
+
( "abc", objRef) .`;
|
|
883
|
+
|
|
884
|
+
let expectedTokens = [
|
|
885
|
+
[
|
|
886
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] } // 'RUN'
|
|
887
|
+
],
|
|
888
|
+
[
|
|
889
|
+
{ "startIndex": 0, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
|
|
890
|
+
{ "startIndex": 5, "endIndex": 21, "scopes": ["source.abl", "entity.name.procedure.abl"] } // 'extern-proc-name'
|
|
891
|
+
],
|
|
892
|
+
[
|
|
893
|
+
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
894
|
+
{ "startIndex": 4, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'SINGLETON'
|
|
895
|
+
{ "startIndex": 13, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
|
|
896
|
+
{ "startIndex": 15, "endIndex": 18, "scopes": ["source.abl", "keyword.other.abl"] }, // 'SET'
|
|
897
|
+
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
|
|
898
|
+
{ "startIndex": 19, "endIndex": 30, "scopes": ["source.abl", "variable.other.abl"] } // 'proc-handle'
|
|
899
|
+
],
|
|
900
|
+
[
|
|
901
|
+
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
902
|
+
{ "startIndex": 4, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'ON'
|
|
903
|
+
{ "startIndex": 6, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
904
|
+
{ "startIndex": 8, "endIndex": 14, "scopes": ["source.abl", "keyword.other.abl"] }, // 'SERVER'
|
|
905
|
+
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
|
|
906
|
+
{ "startIndex": 15, "endIndex": 22, "scopes": ["source.abl", "variable.language.abl"] } // 'session'
|
|
907
|
+
],
|
|
908
|
+
[
|
|
909
|
+
{ "startIndex": 0, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
910
|
+
{ "startIndex": 8, "endIndex": 19, "scopes": ["source.abl", "keyword.other.abl"] }, // 'TRANSACTION'
|
|
911
|
+
{ "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
|
|
912
|
+
{ "startIndex": 20, "endIndex": 28, "scopes": ["source.abl", "keyword.other.abl"] } // 'DISTINCT'
|
|
913
|
+
],
|
|
914
|
+
[
|
|
915
|
+
{ "startIndex": 0, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
916
|
+
{ "startIndex": 8, "endIndex": 20, "scopes": ["source.abl", "keyword.other.abl"] } // 'ASYNCHRONOUS'
|
|
917
|
+
],
|
|
918
|
+
[
|
|
919
|
+
{ "startIndex": 0, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
|
|
920
|
+
{ "startIndex": 12, "endIndex": 15, "scopes": ["source.abl", "keyword.other.abl"] }, // 'SET'
|
|
921
|
+
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
|
|
922
|
+
{ "startIndex": 16, "endIndex": 36, "scopes": ["source.abl", "variable.other.abl"] } // 'async-request-handle'
|
|
923
|
+
],
|
|
924
|
+
[
|
|
925
|
+
{ "startIndex": 0, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
|
|
926
|
+
{ "startIndex": 12, "endIndex": 27, "scopes": ["source.abl", "keyword.other.abl"] }, // 'EVENT-PROCEDURE'
|
|
927
|
+
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl"] }, // ' '
|
|
928
|
+
{ "startIndex": 28, "endIndex": 52, "scopes": ["source.abl", "variable.other.abl"] } // 'event-internal-procedure'
|
|
929
|
+
],
|
|
930
|
+
[
|
|
931
|
+
{ "startIndex": 0, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
|
|
932
|
+
{ "startIndex": 16, "endIndex": 18, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IN'
|
|
933
|
+
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
|
|
934
|
+
{ "startIndex": 19, "endIndex": 36, "scopes": ["source.abl", "variable.other.abl"] } // 'procedure-context'
|
|
935
|
+
],
|
|
936
|
+
[
|
|
937
|
+
{ "startIndex": 0, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
|
|
938
|
+
{ "startIndex": 12, "endIndex": 25, "scopes": ["source.abl", "keyword.other.abl"] }, // 'EVENT-HANDLER'
|
|
939
|
+
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
|
|
940
|
+
{ "startIndex": 26, "endIndex": 32, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'string'
|
|
941
|
+
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
942
|
+
{ "startIndex": 33, "endIndex": 51, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'event-handler-name'
|
|
943
|
+
{ "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
944
|
+
{ "startIndex": 52, "endIndex": 58, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'Method'
|
|
945
|
+
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
946
|
+
{ "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
|
|
947
|
+
{ "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
|
|
948
|
+
],
|
|
949
|
+
[
|
|
950
|
+
{ "startIndex": 0, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
|
|
951
|
+
{ "startIndex": 15, "endIndex": 36, "scopes": ["source.abl", "keyword.other.abl"] }, // 'EVENT-HANDLER-CONTEXT'
|
|
952
|
+
{ "startIndex": 36, "endIndex": 37, "scopes": ["source.abl"] }, // ' '
|
|
953
|
+
{ "startIndex": 37, "endIndex": 51, "scopes": ["source.abl", "variable.language.abl"] } // 'this-procedure'
|
|
954
|
+
],
|
|
955
|
+
[
|
|
956
|
+
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] }, // ' '
|
|
957
|
+
{ "startIndex": 1, "endIndex": 2, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
958
|
+
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
959
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
960
|
+
{ "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'abc'
|
|
961
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
962
|
+
{ "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
963
|
+
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
964
|
+
{ "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'objRef'
|
|
965
|
+
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
966
|
+
{ "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
|
|
967
|
+
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
968
|
+
]
|
|
969
|
+
];
|
|
970
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
971
|
+
})
|