abl-tmlanguage 1.2.0 → 1.3.1
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 +43 -1
- package/abl.tmLanguage.json +1461 -474
- package/package.json +1 -1
- package/spec/annotations/annotation.spec.js +232 -0
- package/spec/blocks/finally-blocks.spec.js +90 -0
- package/spec/blocks/on-quit.spec.js +59 -0
- package/spec/comments/comment-in-block-statement.spec.js +142 -0
- package/spec/comments/comment-in-function-args.spec.js +45 -0
- package/spec/comments/vscode-abl-issue#127.spec.js +165 -0
- package/spec/db-table-and-field/field-in-function.spec.js +58 -0
- package/spec/db-table-and-field/fields-except.spec.js +69 -0
- package/spec/db-table-and-field/foreach.spec.js +588 -0
- package/spec/db-table-and-field/issue#88.spec.js +120 -0
- package/spec/define-buffer/create-buffer.spec.js +110 -0
- package/spec/define-enum/type-name.spec.js +200 -0
- package/spec/define-event/simple-single-line.spec.js +61 -0
- package/spec/define-parameter/simple-single-line.spec.js +40 -0
- package/spec/define-property/property-getter.spec.js +165 -0
- package/spec/define-stream/simple-single-line.spec.js +3 -4
- package/spec/define-temp-table/define-dataset.spec.js +21 -0
- package/spec/define-temp-table/define-index.spec.js +272 -0
- package/spec/define-variable/simple-single-line.spec.js +81 -0
- package/spec/do/do-blocks.spec.js +121 -29
- package/spec/do/issue#3.spec.js +5 -3
- package/spec/do/stop-after.spec.js +79 -0
- package/spec/function-call/nested-functions.spec.js +246 -0
- package/spec/function-call/pass-table.spec.js +35 -0
- package/spec/function-call/set-size.spec.js +19 -0
- package/spec/function-call/vscode-abl-issue#19.spec.js +6 -6
- package/spec/include/abl-tmlanguage-issues#5.spec.js +40 -57
- package/spec/include/unnamed-arguments.spec.js +39 -0
- package/spec/include/vscode-abl-issue#45.spec.js +2 -2
- package/spec/include/vscode-abl-issue#77.spec.js +129 -0
- package/spec/include/vscode-abl-issue#80.spec.js +33 -19
- package/spec/method-attribute-property-call/abl-method-attribute-call.spec.js +99 -0
- package/spec/method-attribute-property-call/connected-method.spec.js +30 -0
- package/spec/method-attribute-property-call/get-set-method-name.spec.js +96 -0
- package/spec/method-attribute-property-call/method-call.spec.js +112 -0
- package/spec/method-attribute-property-call/unqualified-method-call.spec.js +42 -0
- package/spec/method-definition/constructor.spec.js +9 -9
- package/spec/method-definition/method.spec.js +139 -4
- package/spec/misc-statements/case-statement.spec.js +96 -0
- package/spec/misc-statements/copy-lob.spec.js +137 -0
- package/spec/misc-statements/def-in-name.spec.js +20 -0
- package/spec/misc-statements/event-subscribe.spec.js +309 -0
- package/spec/misc-statements/if-then.spec.js +212 -0
- package/spec/misc-statements/release.spec.js +42 -0
- package/spec/misc-statements/return-statement.spec.js +53 -0
- package/spec/operators/operators.spec.js +78 -0
- package/spec/procedure-definition/empty-proc.spec.js +107 -1
- package/spec/procedure-definition/vscode-abl-issue#22.spec.js +1 -1
- package/spec/procedure-definition/vscode-abl-issue#26.spec.js +2 -2
- package/spec/procedure-definition/vscode-abl-issue#62.spec.js +2 -2
- package/spec/run-statement/run-statement.spec.js +162 -0
- package/spec/strings/translation-attribute.spec.js +52 -0
- package/spec/strings/vscode-abl-issue#11.spec.js +12 -13
- package/spec/strings/vscode-abl-issue#28.spec.js +1 -1
- package/spec/type-name/argument.spec.js +3 -3
- package/spec/type-name/cast.spec.js +3 -3
- package/spec/type-name/define-class.spec.js +67 -70
- package/spec/type-name/define-property.spec.js +48 -106
- package/spec/type-name/define-variable-property.spec.js +40 -40
- package/spec/type-name/get-class.spec.js +18 -18
- package/spec/type-name/new.spec.js +2 -3
- package/spec/type-name/parameter-as.spec.js +68 -22
- package/spec/type-name/type-name.spec.js +879 -0
- package/spec/type-name/type-name-spec.js +0 -587
|
@@ -21,7 +21,7 @@ describe('', () => {
|
|
|
21
21
|
{ "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
22
22
|
{ "startIndex": 30, "endIndex": 41, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
23
23
|
{ "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
24
|
-
{ "startIndex": 42, "endIndex":
|
|
24
|
+
{ "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
25
25
|
];
|
|
26
26
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
27
27
|
})
|
|
@@ -45,7 +45,7 @@ describe('', () => {
|
|
|
45
45
|
{ "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
46
46
|
{ "startIndex": 46, "endIndex": 57, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
47
47
|
{ "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
48
|
-
{ "startIndex": 58, "endIndex":
|
|
48
|
+
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
49
49
|
];
|
|
50
50
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
51
51
|
})
|
|
@@ -72,7 +72,7 @@ describe('', () => {
|
|
|
72
72
|
{ "startIndex": 63, "endIndex": 64, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
73
73
|
{ "startIndex": 64, "endIndex": 75, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
74
74
|
{ "startIndex": 75, "endIndex": 76, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
75
|
-
{ "startIndex": 76, "endIndex":
|
|
75
|
+
{ "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
76
76
|
];
|
|
77
77
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
78
78
|
})
|
|
@@ -102,7 +102,7 @@ describe('', () => {
|
|
|
102
102
|
{ "startIndex": 69, "endIndex": 80, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.generic.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
103
103
|
{ "startIndex": 80, "endIndex": 81, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.generic.abl"] }, // '>'
|
|
104
104
|
{ "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
105
|
-
{ "startIndex": 82, "endIndex":
|
|
105
|
+
{ "startIndex": 82, "endIndex": 83, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
106
106
|
];
|
|
107
107
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
108
108
|
})
|
|
@@ -147,7 +147,7 @@ describe('', () => {
|
|
|
147
147
|
{ "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
148
148
|
{ "startIndex": 68, "endIndex": 75, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'logical'
|
|
149
149
|
{ "startIndex": 75, "endIndex": 76, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
150
|
-
{ "startIndex": 76, "endIndex":
|
|
150
|
+
{ "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
151
151
|
]
|
|
152
152
|
];
|
|
153
153
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
@@ -195,7 +195,7 @@ describe('', () => {
|
|
|
195
195
|
{ "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
196
196
|
{ "startIndex": 70, "endIndex": 77, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'logical'
|
|
197
197
|
{ "startIndex": 77, "endIndex": 78, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
198
|
-
{ "startIndex": 78, "endIndex":
|
|
198
|
+
{ "startIndex": 78, "endIndex": 79, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
199
199
|
]
|
|
200
200
|
];
|
|
201
201
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
@@ -220,7 +220,7 @@ describe('', () => {
|
|
|
220
220
|
{ "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
221
221
|
{ "startIndex": 57, "endIndex": 68, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
222
222
|
{ "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
223
|
-
{ "startIndex": 69, "endIndex":
|
|
223
|
+
{ "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
224
224
|
];
|
|
225
225
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
226
226
|
})
|
|
@@ -244,7 +244,7 @@ describe('', () => {
|
|
|
244
244
|
{ "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
245
245
|
{ "startIndex": 49, "endIndex": 60, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
246
246
|
{ "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
247
|
-
{ "startIndex": 61, "endIndex":
|
|
247
|
+
{ "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
248
248
|
];
|
|
249
249
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
250
250
|
})
|
|
@@ -270,7 +270,7 @@ describe('', () => {
|
|
|
270
270
|
{ "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
271
271
|
{ "startIndex": 55, "endIndex": 66, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
272
272
|
{ "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
273
|
-
{ "startIndex": 67, "endIndex":
|
|
273
|
+
{ "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
274
274
|
];
|
|
275
275
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
276
276
|
})
|
|
@@ -301,7 +301,7 @@ describe('', () => {
|
|
|
301
301
|
{ "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
302
302
|
{ "startIndex": 47, "endIndex": 58, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
303
303
|
{ "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
304
|
-
{ "startIndex": 59, "endIndex":
|
|
304
|
+
{ "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
305
305
|
];
|
|
306
306
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
307
307
|
})
|
|
@@ -334,7 +334,7 @@ describe('', () => {
|
|
|
334
334
|
{ "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
335
335
|
{ "startIndex": 63, "endIndex": 74, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
336
336
|
{ "startIndex": 74, "endIndex": 75, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
337
|
-
{ "startIndex": 75, "endIndex":
|
|
337
|
+
{ "startIndex": 75, "endIndex": 76, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
338
338
|
];
|
|
339
339
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
340
340
|
})
|
|
@@ -369,7 +369,7 @@ describe('', () => {
|
|
|
369
369
|
{ "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
370
370
|
{ "startIndex": 50, "endIndex": 61, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
371
371
|
{ "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
372
|
-
{ "startIndex": 62, "endIndex":
|
|
372
|
+
{ "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
373
373
|
]
|
|
374
374
|
];
|
|
375
375
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
@@ -408,7 +408,7 @@ describe('', () => {
|
|
|
408
408
|
{ "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
409
409
|
{ "startIndex": 56, "endIndex": 67, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'foo.bar.baz'
|
|
410
410
|
{ "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
411
|
-
{ "startIndex": 68, "endIndex":
|
|
411
|
+
{ "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
412
412
|
]
|
|
413
413
|
];
|
|
414
414
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
@@ -449,7 +449,7 @@ describe('', () => {
|
|
|
449
449
|
{ "startIndex": 51, "endIndex": 64, "scopes": ["source.abl", "meta.define.method.abl", "string.double.complex.abl"] }, // 'System.Byte[]'
|
|
450
450
|
{ "startIndex": 64, "endIndex": 65, "scopes": ["source.abl", "meta.define.method.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
|
|
451
451
|
{ "startIndex": 65, "endIndex": 66, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
452
|
-
{ "startIndex": 66, "endIndex":
|
|
452
|
+
{ "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
453
453
|
]
|
|
454
454
|
];
|
|
455
455
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
@@ -485,7 +485,7 @@ describe('', () => {
|
|
|
485
485
|
{ "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
486
486
|
{ "startIndex": 50, "endIndex": 53, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'baz'
|
|
487
487
|
{ "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
488
|
-
{ "startIndex": 54, "endIndex":
|
|
488
|
+
{ "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
489
489
|
]
|
|
490
490
|
];
|
|
491
491
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
@@ -534,7 +534,7 @@ describe('', () => {
|
|
|
534
534
|
],
|
|
535
535
|
[
|
|
536
536
|
{ "startIndex": 0, "endIndex": 44, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
537
|
-
{ "startIndex": 44, "endIndex":
|
|
537
|
+
{ "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
538
538
|
],
|
|
539
539
|
[
|
|
540
540
|
{ "startIndex": 0, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
|
|
@@ -542,7 +542,7 @@ describe('', () => {
|
|
|
542
542
|
{ "startIndex": 27, "endIndex": 28, "scopes": ["source.abl"] }, // ' '
|
|
543
543
|
{ "startIndex": 28, "endIndex": 31, "scopes": ["source.abl", "storage.type.abl"] }, // 'int'
|
|
544
544
|
{ "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
|
|
545
|
-
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "
|
|
545
|
+
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "storage.type.abl"] }, // 'i'
|
|
546
546
|
{ "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
547
547
|
],
|
|
548
548
|
[
|
|
@@ -606,7 +606,7 @@ describe('', () => {
|
|
|
606
606
|
],
|
|
607
607
|
[
|
|
608
608
|
{ "startIndex": 0, "endIndex": 12, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
609
|
-
{ "startIndex": 12, "endIndex":
|
|
609
|
+
{ "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
610
610
|
]
|
|
611
611
|
];
|
|
612
612
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
@@ -667,7 +667,7 @@ describe('', () => {
|
|
|
667
667
|
{ "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
668
668
|
{ "startIndex": 72, "endIndex": 74, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'hh'
|
|
669
669
|
{ "startIndex": 74, "endIndex": 75, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
670
|
-
{ "startIndex": 75, "endIndex":
|
|
670
|
+
{ "startIndex": 75, "endIndex": 76, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
671
671
|
]
|
|
672
672
|
];
|
|
673
673
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
@@ -730,7 +730,7 @@ describe('', () => {
|
|
|
730
730
|
{ "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
731
731
|
{ "startIndex": 72, "endIndex": 74, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'hh'
|
|
732
732
|
{ "startIndex": 74, "endIndex": 75, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
733
|
-
{ "startIndex": 75, "endIndex":
|
|
733
|
+
{ "startIndex": 75, "endIndex": 76, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
734
734
|
]
|
|
735
735
|
];
|
|
736
736
|
|
|
@@ -798,7 +798,7 @@ describe('', () => {
|
|
|
798
798
|
{ "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
799
799
|
{ "startIndex": 72, "endIndex": 74, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'hh'
|
|
800
800
|
{ "startIndex": 74, "endIndex": 75, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
801
|
-
{ "startIndex": 75, "endIndex":
|
|
801
|
+
{ "startIndex": 75, "endIndex": 76, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
802
802
|
]
|
|
803
803
|
];
|
|
804
804
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
@@ -831,8 +831,54 @@ describe('', () => {
|
|
|
831
831
|
{ "startIndex": 64, "endIndex": 65, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
832
832
|
{ "startIndex": 65, "endIndex": 75, "scopes": ["source.abl", "meta.define.method.abl", "storage.data.table.abl"] }, // 'dsCustomer'
|
|
833
833
|
{ "startIndex": 75, "endIndex": 76, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
834
|
-
{ "startIndex": 76, "endIndex":
|
|
834
|
+
{ "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
835
835
|
]
|
|
836
836
|
];
|
|
837
837
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
838
838
|
})
|
|
839
|
+
|
|
840
|
+
describe('', () => {
|
|
841
|
+
let statement = `method private void ExtractEntity(input poResponse as IHttpResponse,
|
|
842
|
+
input poMessageBody as ByteBucket):
|
|
843
|
+
end method.`;
|
|
844
|
+
|
|
845
|
+
let expectedTokens = [
|
|
846
|
+
[
|
|
847
|
+
{ "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'method'
|
|
848
|
+
{ "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
849
|
+
{ "startIndex": 7, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'private'
|
|
850
|
+
{ "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
851
|
+
{ "startIndex": 15, "endIndex": 19, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'void'
|
|
852
|
+
{ "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
853
|
+
{ "startIndex": 20, "endIndex": 33, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.function.abl"] }, // 'ExtractEntity'
|
|
854
|
+
{ "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // '('
|
|
855
|
+
{ "startIndex": 34, "endIndex": 39, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'input'
|
|
856
|
+
{ "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
857
|
+
{ "startIndex": 40, "endIndex": 50, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'poResponse'
|
|
858
|
+
{ "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
859
|
+
{ "startIndex": 51, "endIndex": 53, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'as'
|
|
860
|
+
{ "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
861
|
+
{ "startIndex": 54, "endIndex": 67, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'IHttpResponse'
|
|
862
|
+
{ "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.define.method.abl", "punctuation.separator.comma.abl"] } // ','
|
|
863
|
+
],
|
|
864
|
+
[
|
|
865
|
+
{ "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
866
|
+
{ "startIndex": 4, "endIndex": 9, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'input'
|
|
867
|
+
{ "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
868
|
+
{ "startIndex": 10, "endIndex": 23, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'poMessageBody'
|
|
869
|
+
{ "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
870
|
+
{ "startIndex": 24, "endIndex": 26, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'as'
|
|
871
|
+
{ "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
|
|
872
|
+
{ "startIndex": 27, "endIndex": 37, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'ByteBucket'
|
|
873
|
+
{ "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
|
|
874
|
+
{ "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
|
|
875
|
+
],
|
|
876
|
+
[
|
|
877
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
|
|
878
|
+
{ "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
|
|
879
|
+
{ "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'method'
|
|
880
|
+
{ "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
881
|
+
]
|
|
882
|
+
];
|
|
883
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
884
|
+
})
|