abl-tmlanguage 1.3.26 → 1.3.28
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 +14 -0
- package/README.md +2 -1
- package/abl.tmLanguage.json +291 -112
- package/index.mjs +109 -11
- package/package.json +1 -1
- package/spec/blocks/block-options.spec.js +16 -16
- package/spec/blocks/finally-blocks.spec.js +5 -5
- package/spec/comments/comment-in-block-statement.spec.js +1 -1
- package/spec/comments/comment-in-for-each.spec.js +5 -5
- package/spec/comments/vscode-abl-issue#127.spec.js +20 -20
- package/spec/db-table-and-field/buffer-copy.spec.js +22 -22
- package/spec/db-table-and-field/create-alias.spec.js +39 -38
- package/spec/db-table-and-field/double-colon-access.spec.js +154 -0
- package/spec/db-table-and-field/field-in-function.spec.js +25 -25
- package/spec/db-table-and-field/fields-except.spec.js +1 -2
- package/spec/db-table-and-field/foreach.spec.js +6 -6
- package/spec/db-table-and-field/issue#88.spec.js +5 -4
- package/spec/db-table-and-field/new-record.spec.js +9 -9
- package/spec/db-table-and-field/query-get.spec.js +137 -0
- package/spec/define-buffer/create-buffer.spec.js +57 -0
- package/spec/define-frame/issue#173.spec.js +16 -16
- package/spec/define-property/property-getter.spec.js +8 -103
- package/spec/define-variable/simple-single-line.spec.js +1 -1
- package/spec/define-variable/var-statement.spec.js +21 -21
- package/spec/do/do-blocks.spec.js +22 -22
- package/spec/do/stop-after.spec.js +1 -1
- package/spec/function-call/can-find.spec.js +12 -12
- package/spec/function-call/include-in-argument.spec.js +120 -0
- package/spec/function-call/misc-abl-functions.spec.js +9 -9
- package/spec/function-call/nested-functions.spec.js +124 -124
- package/spec/function-call/vscode-abl-issue#19.spec.js +14 -14
- package/spec/function-definition/vscode-abl-issue#166.spec.js +1 -1
- package/spec/input-output/input-from.spec.js +116 -116
- package/spec/input-output/output-to.spec.js +105 -105
- package/spec/method-attribute-property-call/get-set-method-name.spec.js +1 -2
- package/spec/method-attribute-property-call/method-call.spec.js +1 -1
- package/spec/method-attribute-property-call/nested-property-call.spec.js +8 -25
- package/spec/method-attribute-property-call/unqualified-method-call.spec.js +27 -27
- package/spec/method-definition/constructor.spec.js +5 -5
- package/spec/misc-statements/class-in-var-name.spec.js +22 -22
- package/spec/misc-statements/copy-lob.spec.js +11 -4
- package/spec/misc-statements/do-in-name.spec.js +5 -5
- package/spec/misc-statements/guid.spec.js +10 -10
- package/spec/misc-statements/if-then.spec.js +38 -38
- package/spec/misc-statements/record-buffer-functions.spec.js +5 -5
- package/spec/misc-statements/return-statement.spec.js +15 -15
- package/spec/misc-statements/skip-statement-and-fuction.spec.js +6 -6
- package/spec/misc-statements/system-handles.spec.js +17 -3
- package/spec/numbers/scientific-notation.spec.js +7 -7
- package/spec/operators/operators.spec.js +6 -6
- package/spec/preprocesors/proparse-preprocessor.spec.js +7 -7
- package/spec/run-statement/run-statement.spec.js +30 -133
- package/spec/strings/translation-attribute.spec.js +7 -7
- package/spec/strings/vscode-abl-issue#11.spec.js +0 -53
- package/spec/strings/vscode-abl-issue#28.spec.js +16 -16
- package/spec/type-name/argument.spec.js +6 -7
- package/spec/type-name/define-property.spec.js +1 -1
- package/spec/type-name/define-temp-table.spec.js +4 -4
- package/spec/type-name/define-variable-property.spec.js +1 -1
- package/spec/type-name/define-variable.spec.js +1 -1
- package/spec/type-name/new.spec.js +8 -8
- package/spec/type-name/parameter-as.spec.js +50 -1
- package/spec/type-name/type-name.spec.js +20 -20
|
@@ -18,9 +18,9 @@ with down# down row 12 no-labels no-box frame f-body.`;
|
|
|
18
18
|
{ "startIndex": 5, "endIndex": 7, "scopes": ["source.abl", "constant.numeric.source.abl"] } // '15'
|
|
19
19
|
],
|
|
20
20
|
[
|
|
21
|
-
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "
|
|
22
|
-
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.function
|
|
23
|
-
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.
|
|
21
|
+
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "support.function.abl"] }, // 'skip'
|
|
22
|
+
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
23
|
+
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
|
|
24
24
|
],
|
|
25
25
|
[
|
|
26
26
|
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'with'
|
|
@@ -64,9 +64,9 @@ with down# down row 12 no-labels no-box frame f-body.`;
|
|
|
64
64
|
{ "startIndex": 5, "endIndex": 7, "scopes": ["source.abl", "constant.numeric.source.abl"] } // '15'
|
|
65
65
|
],
|
|
66
66
|
[
|
|
67
|
-
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "
|
|
68
|
-
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.function
|
|
69
|
-
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.
|
|
67
|
+
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "support.function.abl"] }, // 'skip'
|
|
68
|
+
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
69
|
+
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
|
|
70
70
|
],
|
|
71
71
|
[
|
|
72
72
|
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'with'
|
|
@@ -531,16 +531,16 @@ describe('', () => {
|
|
|
531
531
|
{ "startIndex": 6, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "keyword.control.directive.conditional.abl"] } // 'ENDIF'
|
|
532
532
|
],
|
|
533
533
|
[
|
|
534
|
-
{ "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "meta.define.abl"
|
|
535
|
-
{ "startIndex": 5, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "
|
|
536
|
-
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "meta.function
|
|
537
|
-
{ "startIndex": 11, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "meta.function
|
|
538
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "meta.
|
|
539
|
-
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl"
|
|
540
|
-
{ "startIndex": 17, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "
|
|
541
|
-
{ "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "meta.function
|
|
542
|
-
{ "startIndex": 22, "endIndex": 26, "scopes": ["source.abl", "meta.define.abl", "meta.function
|
|
543
|
-
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "meta.
|
|
534
|
+
{ "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
535
|
+
{ "startIndex": 5, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "support.function.abl"] }, // 'SPACE'
|
|
536
|
+
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
537
|
+
{ "startIndex": 11, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '1.19'
|
|
538
|
+
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "meta.brace.round.js"] }, // ')'
|
|
539
|
+
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
540
|
+
{ "startIndex": 17, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "support.function.abl"] }, // 'SKIP'
|
|
541
|
+
{ "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
542
|
+
{ "startIndex": 22, "endIndex": 26, "scopes": ["source.abl", "meta.define.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '0.28'
|
|
543
|
+
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "meta.brace.round.js"] } // ')'
|
|
544
544
|
],
|
|
545
545
|
[
|
|
546
546
|
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
@@ -1,101 +1,6 @@
|
|
|
1
1
|
const { assert, expect } = require('chai');
|
|
2
2
|
const shared = require('../shared.js');
|
|
3
3
|
|
|
4
|
-
describe('', () => {
|
|
5
|
-
let statement = ` define final public non-serializable property Value as longchar no-undo
|
|
6
|
-
get():
|
|
7
|
-
// no need for changes if we're using UTF-8 as CPINTERNAL
|
|
8
|
-
if this-object:Encoding eq 'UTF-8':u then
|
|
9
|
-
return mUTF8Value.
|
|
10
|
-
else
|
|
11
|
-
return codepage-convert(mUTF8Value, this-object:Encoding).
|
|
12
|
-
end get.`;
|
|
13
|
-
let expectedTokens = [
|
|
14
|
-
[
|
|
15
|
-
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
16
|
-
{ "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
|
|
17
|
-
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
18
|
-
{ "startIndex": 11, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'final'
|
|
19
|
-
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
20
|
-
{ "startIndex": 17, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'public'
|
|
21
|
-
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
22
|
-
{ "startIndex": 24, "endIndex": 40, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'non-serializable'
|
|
23
|
-
{ "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
24
|
-
{ "startIndex": 41, "endIndex": 49, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'property'
|
|
25
|
-
{ "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
26
|
-
{ "startIndex": 50, "endIndex": 55, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'Value'
|
|
27
|
-
{ "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
28
|
-
{ "startIndex": 56, "endIndex": 58, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
|
|
29
|
-
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
30
|
-
{ "startIndex": 59, "endIndex": 67, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'longchar'
|
|
31
|
-
{ "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
32
|
-
{ "startIndex": 68, "endIndex": 75, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] } // 'no-undo'
|
|
33
|
-
],
|
|
34
|
-
[
|
|
35
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
36
|
-
{ "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'get'
|
|
37
|
-
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "meta.brace.round.js"] }, // '('
|
|
38
|
-
{ "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "meta.brace.round.js"] }, // ')'
|
|
39
|
-
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // ':'
|
|
40
|
-
],
|
|
41
|
-
[
|
|
42
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
43
|
-
{ "startIndex": 6, "endIndex": 63, "scopes": ["source.abl", "meta.define.abl", "comment.line.double-slash.abl"] } // '// no need for changes if we're using UTF-8 as CPINTERNAL'
|
|
44
|
-
],
|
|
45
|
-
[
|
|
46
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
47
|
-
{ "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'if'
|
|
48
|
-
{ "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
49
|
-
{ "startIndex": 9, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "variable.language.abl"] }, // 'this-object'
|
|
50
|
-
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
51
|
-
{ "startIndex": 21, "endIndex": 29, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'Encoding'
|
|
52
|
-
{ "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
53
|
-
{ "startIndex": 30, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "keyword.operator.source.abl"] }, // 'eq'
|
|
54
|
-
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
55
|
-
{ "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.define.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
|
|
56
|
-
{ "startIndex": 34, "endIndex": 39, "scopes": ["source.abl", "meta.define.abl", "string.quoted.single.abl"] }, // 'UTF-8'
|
|
57
|
-
{ "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
|
|
58
|
-
{ "startIndex": 40, "endIndex": 42, "scopes": ["source.abl", "meta.define.abl", "string.quoted.single.abl", "support.other.abl"] }, // ':u'
|
|
59
|
-
{ "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
60
|
-
{ "startIndex": 43, "endIndex": 47, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] } // 'then'
|
|
61
|
-
],
|
|
62
|
-
[
|
|
63
|
-
{ "startIndex": 0, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
64
|
-
{ "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'return'
|
|
65
|
-
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
66
|
-
{ "startIndex": 17, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'mUTF8Value'
|
|
67
|
-
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
71
|
-
{ "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] } // 'else'
|
|
72
|
-
],
|
|
73
|
-
[
|
|
74
|
-
{ "startIndex": 0, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
75
|
-
{ "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'return'
|
|
76
|
-
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl"] }, // ' '
|
|
77
|
-
{ "startIndex": 17, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "support.function.abl"] }, // 'codepage-convert'
|
|
78
|
-
{ "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
79
|
-
{ "startIndex": 34, "endIndex": 44, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mUTF8Value'
|
|
80
|
-
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
81
|
-
{ "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
|
|
82
|
-
{ "startIndex": 46, "endIndex": 57, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'this-object'
|
|
83
|
-
{ "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
84
|
-
{ "startIndex": 58, "endIndex": 66, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'Encoding'
|
|
85
|
-
{ "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
|
|
86
|
-
{ "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
|
|
87
|
-
],
|
|
88
|
-
[
|
|
89
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
90
|
-
{ "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'end'
|
|
91
|
-
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
92
|
-
{ "startIndex": 6, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'get'
|
|
93
|
-
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
|
|
94
|
-
]
|
|
95
|
-
];
|
|
96
|
-
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
97
|
-
})
|
|
98
|
-
|
|
99
4
|
describe('', () => {
|
|
100
5
|
let statement = ` /** Trims whitespace off the contained string */
|
|
101
6
|
method public void Trim():
|
|
@@ -140,14 +45,14 @@ describe('', () => {
|
|
|
140
45
|
{ "startIndex": 13, "endIndex": 23, "scopes": ["source.abl", "variable.other.abl"] }, // 'mUTF8Value'
|
|
141
46
|
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
142
47
|
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
143
|
-
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"
|
|
144
|
-
{ "startIndex": 26, "endIndex": 36, "scopes": ["source.abl", "
|
|
145
|
-
{ "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function
|
|
146
|
-
{ "startIndex": 37, "endIndex": 46, "scopes": ["source.abl", "meta.function
|
|
147
|
-
{ "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.function
|
|
148
|
-
{ "startIndex": 47, "endIndex": 57, "scopes": ["source.abl", "meta.function
|
|
149
|
-
{ "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function
|
|
150
|
-
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.
|
|
48
|
+
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
|
|
49
|
+
{ "startIndex": 26, "endIndex": 36, "scopes": ["source.abl", "support.function.abl"] }, // 'right-trim'
|
|
50
|
+
{ "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
51
|
+
{ "startIndex": 37, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'left-trim'
|
|
52
|
+
{ "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
53
|
+
{ "startIndex": 47, "endIndex": 57, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mUTF8Value'
|
|
54
|
+
{ "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
|
|
55
|
+
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
151
56
|
{ "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
152
57
|
],
|
|
153
58
|
[
|
|
@@ -170,7 +170,7 @@ describe('', () => {
|
|
|
170
170
|
{ "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
171
171
|
{ "startIndex": 18, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'initial'
|
|
172
172
|
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
173
|
-
{ "startIndex": 26, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "
|
|
173
|
+
{ "startIndex": 26, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "support.function.abl"] }, // 'today'
|
|
174
174
|
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
175
175
|
{ "startIndex": 32, "endIndex": 38, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'format'
|
|
176
176
|
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
@@ -190,7 +190,7 @@ describe('', () => {
|
|
|
190
190
|
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
|
|
191
191
|
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
192
192
|
{ "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
|
|
193
|
-
{ "startIndex": 34, "endIndex": 37, "scopes": ["source.abl", "
|
|
193
|
+
{ "startIndex": 34, "endIndex": 37, "scopes": ["source.abl", "support.function.abl"] } // 'now'
|
|
194
194
|
]
|
|
195
195
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
196
196
|
})
|
|
@@ -210,25 +210,25 @@ describe('', () => {
|
|
|
210
210
|
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
|
|
211
211
|
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
212
212
|
{ "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
|
|
213
|
-
{ "startIndex": 34, "endIndex": 37, "scopes": ["source.abl", "
|
|
213
|
+
{ "startIndex": 34, "endIndex": 37, "scopes": ["source.abl", "support.function.abl"] }, // 'now'
|
|
214
214
|
{ "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
215
215
|
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl"] }, // ' '
|
|
216
216
|
{ "startIndex": 39, "endIndex": 43, "scopes": ["source.abl", "variable.other.abl"] }, // 'dtz2'
|
|
217
217
|
{ "startIndex": 43, "endIndex": 44, "scopes": ["source.abl"] }, // ' '
|
|
218
218
|
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
219
|
-
{ "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"
|
|
220
|
-
{ "startIndex": 46, "endIndex": 58, "scopes": ["source.abl", "
|
|
221
|
-
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function
|
|
222
|
-
{ "startIndex": 59, "endIndex": 62, "scopes": ["source.abl", "meta.function
|
|
223
|
-
{ "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "meta.function
|
|
224
|
-
{ "startIndex": 63, "endIndex": 64, "scopes": ["source.abl", "meta.function
|
|
225
|
-
{ "startIndex": 64, "endIndex": 66, "scopes": ["source.abl", "meta.function
|
|
226
|
-
{ "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.function
|
|
227
|
-
{ "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.function
|
|
228
|
-
{ "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "meta.function
|
|
229
|
-
{ "startIndex": 69, "endIndex": 81, "scopes": ["source.abl", "meta.function
|
|
230
|
-
{ "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.function
|
|
231
|
-
{ "startIndex": 82, "endIndex": 83, "scopes": ["source.abl", "meta.
|
|
219
|
+
{ "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
|
|
220
|
+
{ "startIndex": 46, "endIndex": 58, "scopes": ["source.abl", "support.function.abl"] }, // 'add-interval'
|
|
221
|
+
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
222
|
+
{ "startIndex": 59, "endIndex": 62, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'now'
|
|
223
|
+
{ "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
224
|
+
{ "startIndex": 63, "endIndex": 64, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
225
|
+
{ "startIndex": 64, "endIndex": 66, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '12'
|
|
226
|
+
{ "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
227
|
+
{ "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
228
|
+
{ "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
|
|
229
|
+
{ "startIndex": 69, "endIndex": 81, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.single.abl"] }, // 'milliseconds'
|
|
230
|
+
{ "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
|
|
231
|
+
{ "startIndex": 82, "endIndex": 83, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
232
232
|
{ "startIndex": 83, "endIndex": 84, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
233
233
|
]
|
|
234
234
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
@@ -259,7 +259,7 @@ describe('', () => {
|
|
|
259
259
|
{ "startIndex": 63, "endIndex": 64, "scopes": ["source.abl"] }, // ' '
|
|
260
260
|
{ "startIndex": 64, "endIndex": 65, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
261
261
|
{ "startIndex": 65, "endIndex": 66, "scopes": ["source.abl"] }, // ' '
|
|
262
|
-
{ "startIndex": 66, "endIndex": 69, "scopes": ["source.abl", "
|
|
262
|
+
{ "startIndex": 66, "endIndex": 69, "scopes": ["source.abl", "support.function.abl"] } // 'now'
|
|
263
263
|
]
|
|
264
264
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
265
265
|
})
|
|
@@ -296,7 +296,7 @@ describe('', () => {
|
|
|
296
296
|
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
|
|
297
297
|
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
298
298
|
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl"] }, // ' '
|
|
299
|
-
{ "startIndex": 27, "endIndex": 30, "scopes": ["source.abl", "
|
|
299
|
+
{ "startIndex": 27, "endIndex": 30, "scopes": ["source.abl", "support.function.abl"] }, // 'new'
|
|
300
300
|
{ "startIndex": 30, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
|
|
301
301
|
{ "startIndex": 31, "endIndex": 34, "scopes": ["source.abl", "entity.name.type.abl"] }, // 'Set'
|
|
302
302
|
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
@@ -419,19 +419,19 @@ describe('', () => {
|
|
|
419
419
|
{ "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
420
420
|
{ "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
|
|
421
421
|
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
|
|
422
|
-
{ "startIndex": 24, "endIndex": 27, "scopes": ["source.abl", "meta.array.literal.abl", "
|
|
422
|
+
{ "startIndex": 24, "endIndex": 27, "scopes": ["source.abl", "meta.array.literal.abl", "support.function.abl"] }, // 'now'
|
|
423
423
|
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
424
424
|
{ "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
|
|
425
|
-
{ "startIndex": 29, "endIndex": 34, "scopes": ["source.abl", "meta.array.literal.abl", "
|
|
425
|
+
{ "startIndex": 29, "endIndex": 34, "scopes": ["source.abl", "meta.array.literal.abl", "support.function.abl"] }, // 'today'
|
|
426
426
|
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
427
427
|
{ "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
|
|
428
428
|
{ "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.array.literal.abl", "constant.language.abl"] }, // '?'
|
|
429
429
|
{ "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
430
430
|
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
|
|
431
|
-
{ "startIndex": 39, "endIndex": 44, "scopes": ["source.abl", "meta.array.literal.abl", "
|
|
431
|
+
{ "startIndex": 39, "endIndex": 44, "scopes": ["source.abl", "meta.array.literal.abl", "support.function.abl"] }, // 'today'
|
|
432
432
|
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
433
433
|
{ "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
|
|
434
|
-
{ "startIndex": 46, "endIndex": 49, "scopes": ["source.abl", "meta.array.literal.abl", "
|
|
434
|
+
{ "startIndex": 46, "endIndex": 49, "scopes": ["source.abl", "meta.array.literal.abl", "support.function.abl"] }, // 'now'
|
|
435
435
|
{ "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
|
|
436
436
|
{ "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
437
437
|
]
|
|
@@ -134,31 +134,31 @@ end.`;
|
|
|
134
134
|
{ "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
135
135
|
{ "startIndex": 56, "endIndex": 61, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'error'
|
|
136
136
|
{ "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
137
|
-
{ "startIndex": 62, "endIndex": 65, "scopes": ["source.abl", "meta.block.abl", "
|
|
137
|
+
{ "startIndex": 62, "endIndex": 65, "scopes": ["source.abl", "meta.block.abl", "support.function.abl"] }, // 'new'
|
|
138
138
|
{ "startIndex": 65, "endIndex": 66, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
139
139
|
{ "startIndex": 66, "endIndex": 88, "scopes": ["source.abl", "meta.block.abl", "entity.name.type.abl"] } // 'StopConditionException'
|
|
140
140
|
],
|
|
141
141
|
[
|
|
142
142
|
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
143
143
|
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
144
|
-
{ "startIndex": 3, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "
|
|
145
|
-
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
146
|
-
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
147
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
148
|
-
{ "startIndex": 16, "endIndex": 70, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
149
|
-
{ "startIndex": 70, "endIndex": 72, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
150
|
-
{ "startIndex": 72, "endIndex": 80, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
151
|
-
{ "startIndex": 80, "endIndex": 81, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
152
|
-
{ "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
153
|
-
{ "startIndex": 82, "endIndex": 83, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
154
|
-
{ "startIndex": 83, "endIndex": 87, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
155
|
-
{ "startIndex": 87, "endIndex": 88, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
156
|
-
{ "startIndex": 88, "endIndex": 89, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
144
|
+
{ "startIndex": 3, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'substitute'
|
|
145
|
+
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
146
|
+
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl"] }, // ' '
|
|
147
|
+
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
148
|
+
{ "startIndex": 16, "endIndex": 70, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'A stop condition raised while waiting for the backend.'
|
|
149
|
+
{ "startIndex": 70, "endIndex": 72, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "constant.character.escape.abl"] }, // '~n'
|
|
150
|
+
{ "startIndex": 72, "endIndex": 80, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'Comp: &1'
|
|
151
|
+
{ "startIndex": 80, "endIndex": 81, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
152
|
+
{ "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '{'
|
|
153
|
+
{ "startIndex": 82, "endIndex": 83, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
|
|
154
|
+
{ "startIndex": 83, "endIndex": 87, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'TRAN'
|
|
155
|
+
{ "startIndex": 87, "endIndex": 88, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '}'
|
|
156
|
+
{ "startIndex": 88, "endIndex": 89, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
|
|
157
157
|
],
|
|
158
158
|
[
|
|
159
|
-
{ "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
160
|
-
{ "startIndex": 14, "endIndex": 26, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function
|
|
161
|
-
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.
|
|
159
|
+
{ "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl"] }, // ' '
|
|
160
|
+
{ "startIndex": 14, "endIndex": 26, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'pcEntityName'
|
|
161
|
+
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
|
|
162
162
|
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
|
|
163
163
|
],
|
|
164
164
|
[
|
|
@@ -203,11 +203,11 @@ end.`;
|
|
|
203
203
|
{ "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.block.abl", "constant.numeric.source.abl"] }, // '1'
|
|
204
204
|
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
205
205
|
{ "startIndex": 10, "endIndex": 12, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'to'
|
|
206
|
-
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl"
|
|
207
|
-
{ "startIndex": 13, "endIndex": 24, "scopes": ["source.abl", "meta.block.abl", "
|
|
208
|
-
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.block.abl", "meta.function
|
|
209
|
-
{ "startIndex": 25, "endIndex": 30, "scopes": ["source.abl", "meta.block.abl", "meta.function
|
|
210
|
-
{ "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.block.abl", "meta.
|
|
206
|
+
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
207
|
+
{ "startIndex": 13, "endIndex": 24, "scopes": ["source.abl", "meta.block.abl", "support.function.abl"] }, // 'num-entries'
|
|
208
|
+
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
209
|
+
{ "startIndex": 25, "endIndex": 30, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'vList'
|
|
210
|
+
{ "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.block.abl", "meta.brace.round.js"] }, // ')'
|
|
211
211
|
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
212
212
|
],
|
|
213
213
|
[
|
|
@@ -54,7 +54,7 @@ end.`;
|
|
|
54
54
|
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
|
|
55
55
|
{ "startIndex": 15, "endIndex": 19, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
|
|
56
56
|
{ "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
|
|
57
|
-
{ "startIndex": 20, "endIndex": 26, "scopes": ["source.abl", "
|
|
57
|
+
{ "startIndex": 20, "endIndex": 26, "scopes": ["source.abl", "support.function.abl"] }, // 'return'
|
|
58
58
|
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
59
59
|
],
|
|
60
60
|
[
|
|
@@ -104,18 +104,18 @@ describe('', () => {
|
|
|
104
104
|
describe('', () => {
|
|
105
105
|
let statement = `STRING(CAN-FIND(FIRST DICTDB._Index-field OF DICTDB._Field),"y/n":u)`;
|
|
106
106
|
let expectedTokens = [
|
|
107
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "
|
|
108
|
-
{ "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.function
|
|
109
|
-
{ "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.function
|
|
110
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function
|
|
111
|
-
{ "startIndex": 16, "endIndex": 21, "scopes": ["source.abl", "meta.function
|
|
112
|
-
{ "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.function
|
|
113
|
-
{ "startIndex": 22, "endIndex": 41, "scopes": ["source.abl", "meta.function
|
|
114
|
-
{ "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function
|
|
115
|
-
{ "startIndex": 42, "endIndex": 44, "scopes": ["source.abl", "meta.function
|
|
116
|
-
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function
|
|
117
|
-
{ "startIndex": 45, "endIndex": 58, "scopes": ["source.abl", "meta.function
|
|
118
|
-
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.
|
|
107
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "support.function.abl"] }, // 'STRING'
|
|
108
|
+
{ "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
109
|
+
{ "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'CAN-FIND'
|
|
110
|
+
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
111
|
+
{ "startIndex": 16, "endIndex": 21, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'FIRST'
|
|
112
|
+
{ "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
113
|
+
{ "startIndex": 22, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'DICTDB._Index-field'
|
|
114
|
+
{ "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
115
|
+
{ "startIndex": 42, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'OF'
|
|
116
|
+
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
117
|
+
{ "startIndex": 45, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'DICTDB._Field'
|
|
118
|
+
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
119
119
|
{ "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
120
120
|
{ "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
121
121
|
{ "startIndex": 61, "endIndex": 64, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'y/n'
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
const { assert, expect } = require('chai');
|
|
2
|
+
const shared = require('../shared.js');
|
|
3
|
+
|
|
4
|
+
describe('', () => {
|
|
5
|
+
let statement = `c1 = substitute("&1", {translate.i
|
|
6
|
+
&scope="'ScopeKey':u"
|
|
7
|
+
&key="'Translation_string_Key':u"}
|
|
8
|
+
).
|
|
9
|
+
|
|
10
|
+
dt1 = now.
|
|
11
|
+
message 1234.`;
|
|
12
|
+
let expectedTokens = [
|
|
13
|
+
[
|
|
14
|
+
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "variable.other.abl"] }, // 'c1'
|
|
15
|
+
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
|
|
16
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
17
|
+
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
|
|
18
|
+
{ "startIndex": 5, "endIndex": 15, "scopes": ["source.abl", "support.function.abl"] }, // 'substitute'
|
|
19
|
+
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
20
|
+
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
21
|
+
{ "startIndex": 17, "endIndex": 19, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // '&1'
|
|
22
|
+
{ "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
23
|
+
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
24
|
+
{ "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
25
|
+
{ "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
|
|
26
|
+
{ "startIndex": 23, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "entity.name.include.abl"] } // 'translate.i'
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
{ "startIndex": 0, "endIndex": 24, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl"] }, // ' '
|
|
30
|
+
{ "startIndex": 24, "endIndex": 30, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&scope'
|
|
31
|
+
{ "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
|
|
32
|
+
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
33
|
+
{ "startIndex": 32, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "string.quoted.double.abl"] }, // ''ScopeKey':u'
|
|
34
|
+
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] } // '"'
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
{ "startIndex": 0, "endIndex": 24, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl"] }, // ' '
|
|
38
|
+
{ "startIndex": 24, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&key'
|
|
39
|
+
{ "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
|
|
40
|
+
{ "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
41
|
+
{ "startIndex": 30, "endIndex": 56, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "string.quoted.double.abl"] }, // ''Translation_string_Key':u'
|
|
42
|
+
{ "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
43
|
+
{ "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
|
|
44
|
+
],
|
|
45
|
+
[
|
|
46
|
+
{ "startIndex": 0, "endIndex": 15, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
47
|
+
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
48
|
+
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "variable.other.abl"] }, // 'dt1'
|
|
55
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
56
|
+
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
57
|
+
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
|
|
58
|
+
{ "startIndex": 6, "endIndex": 9, "scopes": ["source.abl", "support.function.abl"] }, // 'now'
|
|
59
|
+
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
60
|
+
],
|
|
61
|
+
[
|
|
62
|
+
{ "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "keyword.other.abl"] }, // 'message'
|
|
63
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
64
|
+
{ "startIndex": 8, "endIndex": 12, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '1234'
|
|
65
|
+
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
66
|
+
]
|
|
67
|
+
];
|
|
68
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
describe('', () => {
|
|
72
|
+
let statement = `c1 = {translate.i
|
|
73
|
+
&scope="'ScopeKey':u"
|
|
74
|
+
&key="'Translation_string_Key':u"}.
|
|
75
|
+
dt1 = now.
|
|
76
|
+
message 1234.`;
|
|
77
|
+
let expectedTokens = [
|
|
78
|
+
[
|
|
79
|
+
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "variable.other.abl"] }, // 'c1'
|
|
80
|
+
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
|
|
81
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
82
|
+
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
|
|
83
|
+
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
|
|
84
|
+
{ "startIndex": 6, "endIndex": 17, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] } // 'translate.i'
|
|
85
|
+
],
|
|
86
|
+
[
|
|
87
|
+
{ "startIndex": 0, "endIndex": 24, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
|
|
88
|
+
{ "startIndex": 24, "endIndex": 30, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&scope'
|
|
89
|
+
{ "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
|
|
90
|
+
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
91
|
+
{ "startIndex": 32, "endIndex": 44, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl"] }, // ''ScopeKey':u'
|
|
92
|
+
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] } // '"'
|
|
93
|
+
],
|
|
94
|
+
[
|
|
95
|
+
{ "startIndex": 0, "endIndex": 24, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
|
|
96
|
+
{ "startIndex": 24, "endIndex": 28, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&key'
|
|
97
|
+
{ "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
|
|
98
|
+
{ "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
99
|
+
{ "startIndex": 30, "endIndex": 56, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl"] }, // ''Translation_string_Key':u'
|
|
100
|
+
{ "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
101
|
+
{ "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '}'
|
|
102
|
+
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
103
|
+
],
|
|
104
|
+
[
|
|
105
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "variable.other.abl"] }, // 'dt1'
|
|
106
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
107
|
+
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
108
|
+
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
|
|
109
|
+
{ "startIndex": 6, "endIndex": 9, "scopes": ["source.abl", "support.function.abl"] }, // 'now'
|
|
110
|
+
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
111
|
+
],
|
|
112
|
+
[
|
|
113
|
+
{ "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "keyword.other.abl"] }, // 'message'
|
|
114
|
+
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
115
|
+
{ "startIndex": 8, "endIndex": 12, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '1234'
|
|
116
|
+
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
117
|
+
]
|
|
118
|
+
];
|
|
119
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
120
|
+
})
|