abl-tmlanguage 1.3.28 → 1.3.30
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/README.md +8 -9
- package/abl.tmLanguage.json +60 -79
- package/package.json +5 -2
- package/.github/workflows/ci.yml +0 -36
- package/CHANGELOG.md +0 -139
- package/abl-functions.txt +0 -548
- package/abl-keywords.txt +0 -416
- package/abl-methods.txt +0 -1053
- package/index.mjs +0 -508
- package/spec/analyze-suspend-resume/analyze-suspend-resume.spec.js +0 -17
- package/spec/annotations/annotation.spec.js +0 -366
- package/spec/array-extent/issue#5.spec.js +0 -26
- package/spec/blocks/block-labels.spec.js +0 -201
- package/spec/blocks/block-options.spec.js +0 -174
- package/spec/blocks/finally-blocks.spec.js +0 -90
- package/spec/blocks/on-quit.spec.js +0 -59
- package/spec/comments/comment-in-block-statement.spec.js +0 -153
- package/spec/comments/comment-in-for-each.spec.js +0 -105
- package/spec/comments/comment-in-function-args.spec.js +0 -88
- package/spec/comments/spacious-comment.spec.js +0 -73
- package/spec/comments/vscode-abl-issue#127.spec.js +0 -165
- package/spec/create-widgets/create-window.spec.js +0 -224
- package/spec/db-table-and-field/buffer-copy.spec.js +0 -246
- package/spec/db-table-and-field/create-alias.spec.js +0 -131
- package/spec/db-table-and-field/create-record.spec.js +0 -75
- package/spec/db-table-and-field/double-colon-access.spec.js +0 -154
- package/spec/db-table-and-field/field-in-function.spec.js +0 -58
- package/spec/db-table-and-field/fields-except.spec.js +0 -68
- package/spec/db-table-and-field/find-record.spec.js +0 -158
- package/spec/db-table-and-field/foreach.spec.js +0 -588
- package/spec/db-table-and-field/issue#88.spec.js +0 -121
- package/spec/db-table-and-field/new-record.spec.js +0 -250
- package/spec/db-table-and-field/query-get.spec.js +0 -137
- package/spec/define/define-browse.spec.js +0 -454
- package/spec/define/define-button.spec.js +0 -233
- package/spec/define/define-query.spec.js +0 -144
- package/spec/define/define-rectangle.spec.js +0 -47
- package/spec/define-buffer/create-buffer.spec.js +0 -212
- package/spec/define-buffer/simple-single-line.spec.js +0 -155
- package/spec/define-enum/type-name.spec.js +0 -200
- package/spec/define-event/simple-single-line.spec.js +0 -61
- package/spec/define-frame/issue#173.spec.js +0 -580
- package/spec/define-parameter/simple-single-line.spec.js +0 -228
- package/spec/define-property/property-getter.spec.js +0 -70
- package/spec/define-stream/simple-single-line.spec.js +0 -42
- package/spec/define-temp-table/define-dataset.spec.js +0 -217
- package/spec/define-temp-table/define-temp-table.spec.js +0 -605
- package/spec/define-variable/define-like.spec.js +0 -78
- package/spec/define-variable/extent.spec.js +0 -778
- package/spec/define-variable/initial.spec.js +0 -126
- package/spec/define-variable/issue#6.spec.js +0 -280
- package/spec/define-variable/issue#9.spec.js +0 -45
- package/spec/define-variable/simple-single-line.spec.js +0 -181
- package/spec/define-variable/single-line-with-a-comment-at-the-end.spec.js +0 -62
- package/spec/define-variable/single-line-with-a-space-and-a-comment-at-the-end.spec.js +0 -65
- package/spec/define-variable/tm-issue#2.spec.js +0 -25
- package/spec/define-variable/var-statement.spec.js +0 -467
- package/spec/do/do-blocks.spec.js +0 -289
- package/spec/do/issue#3.spec.js +0 -83
- package/spec/do/stop-after.spec.js +0 -79
- package/spec/for-each/for-each.spec.js +0 -111
- package/spec/for-each/issue#321.spec.js +0 -116
- package/spec/for-each/vscode-abl.issue#166.spec.js +0 -83
- package/spec/function-call/can-find.spec.js +0 -239
- package/spec/function-call/include-in-argument.spec.js +0 -120
- package/spec/function-call/misc-abl-functions.spec.js +0 -59
- package/spec/function-call/nested-functions.spec.js +0 -245
- package/spec/function-call/pass-table.spec.js +0 -116
- package/spec/function-call/set-size.spec.js +0 -56
- package/spec/function-call/udf-calls.spec.js +0 -50
- package/spec/function-call/vscode-abl-issue#19.spec.js +0 -129
- package/spec/function-definition/vscode-abl-issue#166.spec.js +0 -446
- package/spec/global-scoped-define/global-define.spec.js +0 -64
- package/spec/global-scoped-define/scoped-define-with-procedure-keyword.spec.js +0 -70
- package/spec/global-scoped-define/undefine.spec.js +0 -44
- package/spec/include/abl-tmlanguage-issues#5.spec.js +0 -40
- package/spec/include/include-file-name.spec.js +0 -267
- package/spec/include/unnamed-arguments.spec.js +0 -38
- package/spec/include/vscode-abl-issue#45.spec.js +0 -20
- package/spec/include/vscode-abl-issue#77.spec.js +0 -128
- package/spec/include/vscode-abl-issue#80.spec.js +0 -50
- package/spec/input-output/input-from.spec.js +0 -504
- package/spec/input-output/output-to.spec.js +0 -456
- package/spec/method-attribute-property-call/abl-method-attribute-call.spec.js +0 -98
- package/spec/method-attribute-property-call/connected-method.spec.js +0 -29
- package/spec/method-attribute-property-call/datset-table-attribute-method-call.spec.js +0 -53
- package/spec/method-attribute-property-call/get-set-method-name.spec.js +0 -140
- package/spec/method-attribute-property-call/method-call.spec.js +0 -268
- package/spec/method-attribute-property-call/nested-property-call.spec.js +0 -18
- package/spec/method-attribute-property-call/unqualified-method-call.spec.js +0 -41
- package/spec/method-definition/constructor.spec.js +0 -174
- package/spec/method-definition/method.spec.js +0 -541
- package/spec/misc-statements/array-for.spec.js +0 -21
- package/spec/misc-statements/case-statement.spec.js +0 -96
- package/spec/misc-statements/class-in-var-name.spec.js +0 -204
- package/spec/misc-statements/copy-lob.spec.js +0 -144
- package/spec/misc-statements/def-in-name.spec.js +0 -20
- package/spec/misc-statements/delete-objects.spec.js +0 -65
- package/spec/misc-statements/do-in-name.spec.js +0 -259
- package/spec/misc-statements/event-subscribe.spec.js +0 -308
- package/spec/misc-statements/export-delimiter.spec.js +0 -37
- package/spec/misc-statements/guid.spec.js +0 -97
- package/spec/misc-statements/if-then.spec.js +0 -454
- package/spec/misc-statements/issue#173.spec.js +0 -99
- package/spec/misc-statements/message-statement.spec.js +0 -21
- package/spec/misc-statements/record-buffer-functions.spec.js +0 -73
- package/spec/misc-statements/release.spec.js +0 -41
- package/spec/misc-statements/return-statement.spec.js +0 -64
- package/spec/misc-statements/skip-statement-and-fuction.spec.js +0 -35
- package/spec/misc-statements/system-handles.spec.js +0 -122
- package/spec/numbers/scientific-notation.spec.js +0 -212
- package/spec/operators/operators.spec.js +0 -149
- package/spec/operators/safe-navigation-operator.spec.js +0 -246
- package/spec/preprocesors/issue166.spec.js +0 -91
- package/spec/preprocesors/preprocessor-functions.spec.js +0 -77
- package/spec/preprocesors/proparse-preprocessor.spec.js +0 -90
- package/spec/procedure-definition/empty-proc.spec.js +0 -134
- package/spec/procedure-definition/trigger-procedure.spec.js +0 -132
- package/spec/procedure-definition/vscode-abl-issue#22.spec.js +0 -46
- package/spec/procedure-definition/vscode-abl-issue#26.spec.js +0 -31
- package/spec/procedure-definition/vscode-abl-issue#325.spec.js +0 -88
- package/spec/procedure-definition/vscode-abl-issue#62.spec.js +0 -39
- package/spec/run-statement/run-statement.spec.js +0 -868
- package/spec/shared.js +0 -104
- package/spec/strings/translation-attribute.spec.js +0 -52
- package/spec/strings/vscode-abl-issue#11.spec.js +0 -56
- package/spec/strings/vscode-abl-issue#28.spec.js +0 -31
- package/spec/type-name/argument.spec.js +0 -206
- package/spec/type-name/cast.spec.js +0 -163
- package/spec/type-name/define-class.spec.js +0 -555
- package/spec/type-name/define-enum.spec.js +0 -44
- package/spec/type-name/define-interface.spec.js +0 -159
- package/spec/type-name/define-property.spec.js +0 -301
- package/spec/type-name/define-temp-table.spec.js +0 -434
- package/spec/type-name/define-type-spec.js +0 -435
- package/spec/type-name/define-variable-property.spec.js +0 -264
- package/spec/type-name/define-variable.spec.js +0 -386
- package/spec/type-name/get-class.spec.js +0 -91
- package/spec/type-name/new.spec.js +0 -185
- package/spec/type-name/parameter-as.spec.js +0 -978
- package/spec/type-name/type-name.spec.js +0 -880
- package/spec/type-name/using.spec.js +0 -160
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
const { assert, expect } = require('chai');
|
|
2
|
-
const shared = require('../shared.js');
|
|
3
|
-
|
|
4
|
-
describe('', () => {
|
|
5
|
-
let statement = `// Per https://tools.ietf.org/html/rfc2817 section 5.3, any 2xx status code is good
|
|
6
|
-
if (200 <= connectResponse:StatusCode and connectResponse:StatusCode < 300) then
|
|
7
|
-
do on error undo, throw:
|
|
8
|
-
// On success, we need to tell the socket connection to upgrade to TLS
|
|
9
|
-
moSocketLib:StartTls(baseRequest:URI:Host).
|
|
10
|
-
|
|
11
|
-
catch sockErr as Progress.Lang.Error:
|
|
12
|
-
Logger:Error(substitute('Unable to create HTTP tunnel to &1', baseRequest:URI:ToString()),
|
|
13
|
-
sockErr).
|
|
14
|
-
undo, throw sockErr.
|
|
15
|
-
end catch.
|
|
16
|
-
end.`;
|
|
17
|
-
let expectedTokens = [
|
|
18
|
-
[
|
|
19
|
-
{ "startIndex": 0, "endIndex": 83, "scopes": ["source.abl", "comment.line.double-slash.abl"] } // '// Per https://tools.ietf.org/html/rfc2817 section 5.3, any 2xx status code is good'
|
|
20
|
-
],
|
|
21
|
-
[
|
|
22
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
|
|
23
|
-
{ "startIndex": 2, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
|
|
24
|
-
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
|
|
25
|
-
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
|
|
26
|
-
{ "startIndex": 6, "endIndex": 9, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '200'
|
|
27
|
-
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
|
|
28
|
-
{ "startIndex": 10, "endIndex": 12, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '<='
|
|
29
|
-
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
|
|
30
|
-
{ "startIndex": 13, "endIndex": 28, "scopes": ["source.abl", "variable.other.abl"] }, // 'connectResponse'
|
|
31
|
-
{ "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
32
|
-
{ "startIndex": 29, "endIndex": 39, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'StatusCode'
|
|
33
|
-
{ "startIndex": 39, "endIndex": 40, "scopes": ["source.abl"] }, // ' '
|
|
34
|
-
{ "startIndex": 40, "endIndex": 43, "scopes": ["source.abl", "keyword.other.abl"] }, // 'and'
|
|
35
|
-
{ "startIndex": 43, "endIndex": 44, "scopes": ["source.abl"] }, // ' '
|
|
36
|
-
{ "startIndex": 44, "endIndex": 59, "scopes": ["source.abl", "variable.other.abl"] }, // 'connectResponse'
|
|
37
|
-
{ "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
38
|
-
{ "startIndex": 60, "endIndex": 70, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'StatusCode'
|
|
39
|
-
{ "startIndex": 70, "endIndex": 71, "scopes": ["source.abl"] }, // ' '
|
|
40
|
-
{ "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '<'
|
|
41
|
-
{ "startIndex": 72, "endIndex": 73, "scopes": ["source.abl"] }, // ' '
|
|
42
|
-
{ "startIndex": 73, "endIndex": 76, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '300'
|
|
43
|
-
{ "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
44
|
-
{ "startIndex": 77, "endIndex": 78, "scopes": ["source.abl"] }, // ' '
|
|
45
|
-
{ "startIndex": 78, "endIndex": 82, "scopes": ["source.abl", "keyword.other.abl"] } // 'then'
|
|
46
|
-
],
|
|
47
|
-
[
|
|
48
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
49
|
-
{ "startIndex": 2, "endIndex": 4, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'do'
|
|
50
|
-
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
51
|
-
{ "startIndex": 5, "endIndex": 7, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'on'
|
|
52
|
-
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
53
|
-
{ "startIndex": 8, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'error'
|
|
54
|
-
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
55
|
-
{ "startIndex": 14, "endIndex": 18, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'undo'
|
|
56
|
-
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.block.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
57
|
-
{ "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
|
|
58
|
-
{ "startIndex": 20, "endIndex": 25, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'throw'
|
|
59
|
-
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
60
|
-
],
|
|
61
|
-
[
|
|
62
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
|
|
63
|
-
{ "startIndex": 6, "endIndex": 76, "scopes": ["source.abl", "comment.line.double-slash.abl"] } // '// On success, we need to tell the socket connection to upgrade to TLS'
|
|
64
|
-
],
|
|
65
|
-
[
|
|
66
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
|
|
67
|
-
{ "startIndex": 6, "endIndex": 17, "scopes": ["source.abl", "variable.other.abl"] }, // 'moSocketLib'
|
|
68
|
-
{ "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
69
|
-
{ "startIndex": 18, "endIndex": 26, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'StartTls'
|
|
70
|
-
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
71
|
-
{ "startIndex": 27, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'baseRequest'
|
|
72
|
-
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
73
|
-
{ "startIndex": 39, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'URI'
|
|
74
|
-
{ "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
75
|
-
{ "startIndex": 43, "endIndex": 47, "scopes": ["source.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'Host'
|
|
76
|
-
{ "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
77
|
-
{ "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
78
|
-
],
|
|
79
|
-
[
|
|
80
|
-
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
|
|
81
|
-
],
|
|
82
|
-
[
|
|
83
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
|
|
84
|
-
{ "startIndex": 6, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'catch'
|
|
85
|
-
{ "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
|
|
86
|
-
{ "startIndex": 12, "endIndex": 19, "scopes": ["source.abl", "variable.parameter.abl"] }, // 'sockErr'
|
|
87
|
-
{ "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
|
|
88
|
-
{ "startIndex": 20, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'as'
|
|
89
|
-
{ "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
|
|
90
|
-
{ "startIndex": 23, "endIndex": 42, "scopes": ["source.abl", "entity.name.type.abl"] }, // 'Progress.Lang.Error'
|
|
91
|
-
{ "startIndex": 42, "endIndex": 43, "scopes": ["source.abl"] } // ':'
|
|
92
|
-
],
|
|
93
|
-
[
|
|
94
|
-
{ "startIndex": 0, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
|
|
95
|
-
{ "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "variable.other.abl"] }, // 'Logger'
|
|
96
|
-
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
97
|
-
{ "startIndex": 17, "endIndex": 22, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Error'
|
|
98
|
-
{ "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
99
|
-
{ "startIndex": 23, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'substitute'
|
|
100
|
-
{ "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
101
|
-
{ "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
|
|
102
|
-
{ "startIndex": 35, "endIndex": 69, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.single.abl"] }, // 'Unable to create HTTP tunnel to &1'
|
|
103
|
-
{ "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
|
|
104
|
-
{ "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
105
|
-
{ "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl"] }, // ' '
|
|
106
|
-
{ "startIndex": 72, "endIndex": 83, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'baseRequest'
|
|
107
|
-
{ "startIndex": 83, "endIndex": 84, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
108
|
-
{ "startIndex": 84, "endIndex": 87, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'URI'
|
|
109
|
-
{ "startIndex": 87, "endIndex": 88, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
110
|
-
{ "startIndex": 88, "endIndex": 96, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'ToString'
|
|
111
|
-
{ "startIndex": 96, "endIndex": 97, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
112
|
-
{ "startIndex": 97, "endIndex": 98, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
|
|
113
|
-
{ "startIndex": 98, "endIndex": 99, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
114
|
-
{ "startIndex": 99, "endIndex": 100, "scopes": ["source.abl", "punctuation.separator.comma.abl"] } // ','
|
|
115
|
-
],
|
|
116
|
-
[
|
|
117
|
-
{ "startIndex": 0, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
118
|
-
{ "startIndex": 24, "endIndex": 31, "scopes": ["source.abl", "variable.other.abl"] }, // 'sockErr'
|
|
119
|
-
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
120
|
-
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
121
|
-
],
|
|
122
|
-
[
|
|
123
|
-
{ "startIndex": 0, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
|
|
124
|
-
{ "startIndex": 10, "endIndex": 14, "scopes": ["source.abl", "keyword.other.abl"] }, // 'undo'
|
|
125
|
-
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
|
|
126
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
|
|
127
|
-
{ "startIndex": 16, "endIndex": 21, "scopes": ["source.abl", "keyword.other.abl"] }, // 'throw'
|
|
128
|
-
{ "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
|
|
129
|
-
{ "startIndex": 22, "endIndex": 29, "scopes": ["source.abl", "variable.other.abl"] }, // 'sockErr'
|
|
130
|
-
{ "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
131
|
-
],
|
|
132
|
-
[
|
|
133
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
|
|
134
|
-
{ "startIndex": 6, "endIndex": 9, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
|
|
135
|
-
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
|
|
136
|
-
{ "startIndex": 10, "endIndex": 15, "scopes": ["source.abl", "keyword.other.abl"] }, // 'catch'
|
|
137
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
138
|
-
],
|
|
139
|
-
[
|
|
140
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
|
|
141
|
-
{ "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
|
|
142
|
-
{ "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
143
|
-
]
|
|
144
|
-
];
|
|
145
|
-
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
146
|
-
})
|
|
147
|
-
|
|
148
|
-
describe('', () => {
|
|
149
|
-
let statement = `if string(1) = "1" then .`;
|
|
150
|
-
let expectedTokens = [
|
|
151
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
|
|
152
|
-
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
|
|
153
|
-
{ "startIndex": 3, "endIndex": 9, "scopes": ["source.abl", "support.function.abl"] }, // 'string'
|
|
154
|
-
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
155
|
-
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '1'
|
|
156
|
-
{ "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
157
|
-
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
|
|
158
|
-
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
159
|
-
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
|
|
160
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
161
|
-
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "string.quoted.double.abl"] }, // '1'
|
|
162
|
-
{ "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
163
|
-
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
|
|
164
|
-
{ "startIndex": 19, "endIndex": 23, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
|
|
165
|
-
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
166
|
-
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
167
|
-
];
|
|
168
|
-
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
169
|
-
})
|
|
170
|
-
|
|
171
|
-
describe('', () => {
|
|
172
|
-
let statement = `if this-object:MethodName /* ticket-id */ and
|
|
173
|
-
valid-handlE(hDataset) then
|
|
174
|
-
hDataset:EMPTY-DATASET() .`;
|
|
175
|
-
let expectedTokens = [
|
|
176
|
-
[
|
|
177
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
|
|
178
|
-
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
|
|
179
|
-
{ "startIndex": 3, "endIndex": 14, "scopes": ["source.abl", "variable.language.abl"] }, // 'this-object'
|
|
180
|
-
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
181
|
-
{ "startIndex": 15, "endIndex": 25, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'MethodName'
|
|
182
|
-
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
|
|
183
|
-
{ "startIndex": 26, "endIndex": 28, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
|
|
184
|
-
{ "startIndex": 28, "endIndex": 39, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' ticket-id '
|
|
185
|
-
{ "startIndex": 39, "endIndex": 41, "scopes": ["source.abl", "comment.block.source.abl"] }, // '*/'
|
|
186
|
-
{ "startIndex": 41, "endIndex": 42, "scopes": ["source.abl"] }, // ' '
|
|
187
|
-
{ "startIndex": 42, "endIndex": 45, "scopes": ["source.abl", "keyword.other.abl"] } // 'and'
|
|
188
|
-
],
|
|
189
|
-
[
|
|
190
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
|
|
191
|
-
{ "startIndex": 2, "endIndex": 14, "scopes": ["source.abl", "support.function.abl"] }, // 'valid-handlE'
|
|
192
|
-
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
193
|
-
{ "startIndex": 15, "endIndex": 23, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'hDataset'
|
|
194
|
-
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
195
|
-
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
|
|
196
|
-
{ "startIndex": 25, "endIndex": 29, "scopes": ["source.abl", "keyword.other.abl"] } // 'then'
|
|
197
|
-
],
|
|
198
|
-
[
|
|
199
|
-
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
200
|
-
{ "startIndex": 4, "endIndex": 12, "scopes": ["source.abl", "variable.other.abl"] }, // 'hDataset'
|
|
201
|
-
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
202
|
-
{ "startIndex": 13, "endIndex": 26, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'EMPTY-DATASET'
|
|
203
|
-
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
204
|
-
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
205
|
-
{ "startIndex": 28, "endIndex": 30, "scopes": ["source.abl"] }, // ' '
|
|
206
|
-
{ "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
207
|
-
]
|
|
208
|
-
];
|
|
209
|
-
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
210
|
-
})
|
|
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"] }, // ' '
|
|
237
|
-
{ "startIndex": 25, "endIndex": 37, "scopes": ["source.abl", "support.function.abl"] }, // 'VALID-HANDLE'
|
|
238
|
-
{ "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
239
|
-
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
240
|
-
{ "startIndex": 39, "endIndex": 47, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'p_Window'
|
|
241
|
-
{ "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
242
|
-
{ "startIndex": 48, "endIndex": 49, "scopes": ["source.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"] }, // ' '
|
|
256
|
-
{ "startIndex": 30, "endIndex": 42, "scopes": ["source.abl", "support.function.abl"] }, // 'VALID-HANDLE'
|
|
257
|
-
{ "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
|
|
258
|
-
{ "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
259
|
-
{ "startIndex": 44, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'CURRENT-WINDOW'
|
|
260
|
-
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
|
|
261
|
-
{ "startIndex": 59, "endIndex": 60, "scopes": ["source.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
|
-
})
|
|
364
|
-
|
|
365
|
-
describe('', () => {
|
|
366
|
-
let statement = `IF (NOT PlanWeight AND StockSearchToSearchQtySKU <= StockSearchBrokenUpQtySKU) OR
|
|
367
|
-
( PlanWeight AND StockSearchToSearchWeightNet <= StockSearchBrokenUpWeightNet ) THEN
|
|
368
|
-
Do:
|
|
369
|
-
IF ApplicationContext:DebugMessages THEN
|
|
370
|
-
MESSAGE " LOOP LEAVE --> HU to SKU conversion: enough broken-up".
|
|
371
|
-
|
|
372
|
-
ASSIGN oplLeave = TRUE.
|
|
373
|
-
END.`;
|
|
374
|
-
let expectedTokens = [
|
|
375
|
-
[
|
|
376
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
|
|
377
|
-
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
|
|
378
|
-
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
|
|
379
|
-
{ "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // 'NOT'
|
|
380
|
-
{ "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
|
|
381
|
-
{ "startIndex": 8, "endIndex": 18, "scopes": ["source.abl", "variable.other.abl"] }, // 'PlanWeight'
|
|
382
|
-
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
|
|
383
|
-
{ "startIndex": 19, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'AND'
|
|
384
|
-
{ "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
|
|
385
|
-
{ "startIndex": 23, "endIndex": 48, "scopes": ["source.abl", "variable.other.abl"] }, // 'StockSearchToSearchQtySKU'
|
|
386
|
-
{ "startIndex": 48, "endIndex": 49, "scopes": ["source.abl"] }, // ' '
|
|
387
|
-
{ "startIndex": 49, "endIndex": 51, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '<='
|
|
388
|
-
{ "startIndex": 51, "endIndex": 52, "scopes": ["source.abl"] }, // ' '
|
|
389
|
-
{ "startIndex": 52, "endIndex": 77, "scopes": ["source.abl", "variable.other.abl"] }, // 'StockSearchBrokenUpQtySKU'
|
|
390
|
-
{ "startIndex": 77, "endIndex": 78, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
391
|
-
{ "startIndex": 78, "endIndex": 79, "scopes": ["source.abl"] }, // ' '
|
|
392
|
-
{ "startIndex": 79, "endIndex": 81, "scopes": ["source.abl", "keyword.other.abl"] } // 'OR'
|
|
393
|
-
],
|
|
394
|
-
[
|
|
395
|
-
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
|
|
396
|
-
{ "startIndex": 1, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
|
|
397
|
-
{ "startIndex": 2, "endIndex": 12, "scopes": ["source.abl", "variable.other.abl"] }, // 'PlanWeight'
|
|
398
|
-
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
|
|
399
|
-
{ "startIndex": 13, "endIndex": 16, "scopes": ["source.abl", "keyword.other.abl"] }, // 'AND'
|
|
400
|
-
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
|
|
401
|
-
{ "startIndex": 17, "endIndex": 45, "scopes": ["source.abl", "variable.other.abl"] }, // 'StockSearchToSearchWeightNet'
|
|
402
|
-
{ "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
|
|
403
|
-
{ "startIndex": 46, "endIndex": 48, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '<='
|
|
404
|
-
{ "startIndex": 48, "endIndex": 49, "scopes": ["source.abl"] }, // ' '
|
|
405
|
-
{ "startIndex": 49, "endIndex": 77, "scopes": ["source.abl", "variable.other.abl"] }, // 'StockSearchBrokenUpWeightNet'
|
|
406
|
-
{ "startIndex": 77, "endIndex": 78, "scopes": ["source.abl"] }, // ' '
|
|
407
|
-
{ "startIndex": 78, "endIndex": 79, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
408
|
-
{ "startIndex": 79, "endIndex": 80, "scopes": ["source.abl"] }, // ' '
|
|
409
|
-
{ "startIndex": 80, "endIndex": 84, "scopes": ["source.abl", "keyword.other.abl"] } // 'THEN'
|
|
410
|
-
],
|
|
411
|
-
[
|
|
412
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'Do'
|
|
413
|
-
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
414
|
-
],
|
|
415
|
-
[
|
|
416
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
|
|
417
|
-
{ "startIndex": 2, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
|
|
418
|
-
{ "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
|
|
419
|
-
{ "startIndex": 5, "endIndex": 23, "scopes": ["source.abl", "variable.other.abl"] }, // 'ApplicationContext'
|
|
420
|
-
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
|
|
421
|
-
{ "startIndex": 24, "endIndex": 37, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'DebugMessages'
|
|
422
|
-
{ "startIndex": 37, "endIndex": 38, "scopes": ["source.abl"] }, // ' '
|
|
423
|
-
{ "startIndex": 38, "endIndex": 42, "scopes": ["source.abl", "keyword.other.abl"] } // 'THEN'
|
|
424
|
-
],
|
|
425
|
-
[
|
|
426
|
-
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
427
|
-
{ "startIndex": 4, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'MESSAGE'
|
|
428
|
-
{ "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
|
|
429
|
-
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
430
|
-
{ "startIndex": 13, "endIndex": 67, "scopes": ["source.abl", "string.quoted.double.abl"] }, // ' LOOP LEAVE --> HU to SKU conversion: enough broken-up'
|
|
431
|
-
{ "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
432
|
-
{ "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
433
|
-
],
|
|
434
|
-
[
|
|
435
|
-
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
|
|
436
|
-
],
|
|
437
|
-
[
|
|
438
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
|
|
439
|
-
{ "startIndex": 2, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'ASSIGN'
|
|
440
|
-
{ "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
|
|
441
|
-
{ "startIndex": 9, "endIndex": 17, "scopes": ["source.abl", "variable.other.abl"] }, // 'oplLeave'
|
|
442
|
-
{ "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
|
|
443
|
-
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
444
|
-
{ "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
|
|
445
|
-
{ "startIndex": 20, "endIndex": 24, "scopes": ["source.abl", "constant.language.abl"] }, // 'TRUE'
|
|
446
|
-
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
447
|
-
],
|
|
448
|
-
[
|
|
449
|
-
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'END'
|
|
450
|
-
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
451
|
-
]
|
|
452
|
-
];
|
|
453
|
-
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
454
|
-
})
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
const { assert, expect } = require('chai');
|
|
2
|
-
const shared = require('../shared.js');
|
|
3
|
-
|
|
4
|
-
describe('', () => {
|
|
5
|
-
let statement = `if (check-value = true) then
|
|
6
|
-
message "Yes" view-as alert-box.`;
|
|
7
|
-
let expectedTokens = [
|
|
8
|
-
[
|
|
9
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
|
|
10
|
-
{ "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
|
|
11
|
-
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
|
|
12
|
-
{ "startIndex": 4, "endIndex": 15, "scopes": ["source.abl", "variable.other.abl"] }, // 'check-value'
|
|
13
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
|
|
14
|
-
{ "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
15
|
-
{ "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
|
|
16
|
-
{ "startIndex": 18, "endIndex": 22, "scopes": ["source.abl", "constant.language.abl"] }, // 'true'
|
|
17
|
-
{ "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
|
|
18
|
-
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
19
|
-
{ "startIndex": 24, "endIndex": 28, "scopes": ["source.abl", "keyword.other.abl"] } // 'then'
|
|
20
|
-
],
|
|
21
|
-
[
|
|
22
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
|
|
23
|
-
{ "startIndex": 2, "endIndex": 9, "scopes": ["source.abl", "keyword.other.abl"] }, // 'message'
|
|
24
|
-
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
|
|
25
|
-
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
26
|
-
{ "startIndex": 11, "endIndex": 14, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'Yes'
|
|
27
|
-
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
28
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
|
|
29
|
-
{ "startIndex": 16, "endIndex": 23, "scopes": ["source.abl", "keyword.other.abl"] }, // 'view-as'
|
|
30
|
-
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
31
|
-
{ "startIndex": 24, "endIndex": 33, "scopes": ["source.abl", "keyword.other.abl"] }, // 'alert-box'
|
|
32
|
-
{ "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
33
|
-
]
|
|
34
|
-
];
|
|
35
|
-
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
describe('', () => {
|
|
39
|
-
let statement = `define variable new-data as integer no-undo.
|
|
40
|
-
define variable check-value as logical no-undo.
|
|
41
|
-
|
|
42
|
-
assign
|
|
43
|
-
new-data = 12345
|
|
44
|
-
check-value = true.`;
|
|
45
|
-
let expectedTokens = [
|
|
46
|
-
[
|
|
47
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
|
|
48
|
-
{ "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
49
|
-
{ "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'variable'
|
|
50
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
51
|
-
{ "startIndex": 16, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'new-data'
|
|
52
|
-
{ "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
53
|
-
{ "startIndex": 25, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
|
|
54
|
-
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
55
|
-
{ "startIndex": 28, "endIndex": 35, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'integer'
|
|
56
|
-
{ "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
57
|
-
{ "startIndex": 36, "endIndex": 43, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'no-undo'
|
|
58
|
-
{ "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
|
|
59
|
-
],
|
|
60
|
-
[
|
|
61
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
|
|
62
|
-
{ "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
63
|
-
{ "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'variable'
|
|
64
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
65
|
-
{ "startIndex": 16, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'check-value'
|
|
66
|
-
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
67
|
-
{ "startIndex": 28, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
|
|
68
|
-
{ "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
69
|
-
{ "startIndex": 31, "endIndex": 38, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'logical'
|
|
70
|
-
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
71
|
-
{ "startIndex": 39, "endIndex": 46, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'no-undo'
|
|
72
|
-
{ "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
|
|
73
|
-
],
|
|
74
|
-
[
|
|
75
|
-
{ "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
|
|
76
|
-
],
|
|
77
|
-
[
|
|
78
|
-
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'assign'
|
|
79
|
-
],
|
|
80
|
-
[
|
|
81
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
|
|
82
|
-
{ "startIndex": 2, "endIndex": 10, "scopes": ["source.abl", "variable.other.abl"] }, // 'new-data'
|
|
83
|
-
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
|
|
84
|
-
{ "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
85
|
-
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
|
|
86
|
-
{ "startIndex": 13, "endIndex": 18, "scopes": ["source.abl", "constant.numeric.source.abl"] } // '12345'
|
|
87
|
-
],
|
|
88
|
-
[
|
|
89
|
-
{ "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
|
|
90
|
-
{ "startIndex": 2, "endIndex": 13, "scopes": ["source.abl", "variable.other.abl"] }, // 'check-value'
|
|
91
|
-
{ "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
|
|
92
|
-
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
|
|
93
|
-
{ "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
|
|
94
|
-
{ "startIndex": 16, "endIndex": 20, "scopes": ["source.abl", "constant.language.abl"] }, // 'true'
|
|
95
|
-
{ "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
96
|
-
]
|
|
97
|
-
];
|
|
98
|
-
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
99
|
-
})
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const { assert, expect } = require('chai');
|
|
2
|
-
const shared = require('../shared.js');
|
|
3
|
-
|
|
4
|
-
describe('', () => {
|
|
5
|
-
let statement = `rmessage "asvasas" view-as alert-box warning.`;
|
|
6
|
-
let expectedTokens = [
|
|
7
|
-
{ "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "variable.other.abl"] }, // 'rmessage'
|
|
8
|
-
{ "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
|
|
9
|
-
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
|
|
10
|
-
{ "startIndex": 10, "endIndex": 17, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'asvasas'
|
|
11
|
-
{ "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
12
|
-
{ "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
|
|
13
|
-
{ "startIndex": 19, "endIndex": 26, "scopes": ["source.abl", "keyword.other.abl"] }, // 'view-as'
|
|
14
|
-
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl"] }, // ' '
|
|
15
|
-
{ "startIndex": 27, "endIndex": 36, "scopes": ["source.abl", "keyword.other.abl"] }, // 'alert-box'
|
|
16
|
-
{ "startIndex": 36, "endIndex": 37, "scopes": ["source.abl"] }, // ' '
|
|
17
|
-
{ "startIndex": 37, "endIndex": 44, "scopes": ["source.abl", "keyword.other.abl"] }, // 'warning'
|
|
18
|
-
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
19
|
-
];
|
|
20
|
-
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
21
|
-
})
|