abl-tmlanguage 1.3.7 → 1.3.8

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.
@@ -0,0 +1,78 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `define variable cSomethibng like tabvle.field no-undo.`;
6
+ let expectedTokens = [
7
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
8
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
9
+ { "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'variable'
10
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
11
+ { "startIndex": 16, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'cSomethibng'
12
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
13
+ { "startIndex": 28, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'like'
14
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
15
+ { "startIndex": 33, "endIndex": 45, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'tabvle.field'
16
+ { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
17
+ { "startIndex": 46, "endIndex": 53, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'no-undo'
18
+ { "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
19
+ ];
20
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
21
+ })
22
+
23
+ describe('', () => {
24
+ let statement = `define variable cSomethibng like database.table.field no-undo.`;
25
+ let expectedTokens = [
26
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
27
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
28
+ { "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'variable'
29
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
30
+ { "startIndex": 16, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'cSomethibng'
31
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
32
+ { "startIndex": 28, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'like'
33
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
34
+ { "startIndex": 33, "endIndex": 53, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'database.table.field'
35
+ { "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
36
+ { "startIndex": 54, "endIndex": 61, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'no-undo'
37
+ { "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
38
+ ];
39
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
40
+ })
41
+
42
+ describe('', () => {
43
+ let statement = `define variable cSomethibng like field-name no-undo.`;
44
+ let expectedTokens = [
45
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
46
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
47
+ { "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'variable'
48
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
49
+ { "startIndex": 16, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'cSomethibng'
50
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
51
+ { "startIndex": 28, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'like'
52
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
53
+ { "startIndex": 33, "endIndex": 43, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'field-name'
54
+ { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
55
+ { "startIndex": 44, "endIndex": 51, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'no-undo'
56
+ { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
57
+ ];
58
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
59
+ })
60
+
61
+ describe('', () => {
62
+ let statement = `define variable cSomethibng like fieldname no-undo.`;
63
+ let expectedTokens = [
64
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
65
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
66
+ { "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'variable'
67
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
68
+ { "startIndex": 16, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'cSomethibng'
69
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
70
+ { "startIndex": 28, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'like'
71
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
72
+ { "startIndex": 33, "endIndex": 42, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'fieldname'
73
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
74
+ { "startIndex": 43, "endIndex": 50, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'no-undo'
75
+ { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
76
+ ];
77
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
78
+ })
@@ -249,4 +249,35 @@ end.`;
249
249
  ]
250
250
  ];
251
251
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
252
+ })
253
+
254
+ describe('', () => {
255
+ let statement = `do vIndex = 1 to ttFoo.MaximumValue:
256
+ end. /* */`;
257
+ let expectedTokens = [
258
+ [
259
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'do'
260
+ { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
261
+ { "startIndex": 3, "endIndex": 9, "scopes": ["source.abl", "meta.block.abl", "variable.other.abl"] }, // 'vIndex'
262
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
263
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.block.abl", "keyword.operator.source.abl"] }, // '='
264
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
265
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl", "constant.numeric.source.abl"] }, // '1'
266
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
267
+ { "startIndex": 14, "endIndex": 16, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'to'
268
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
269
+ { "startIndex": 17, "endIndex": 35, "scopes": ["source.abl", "meta.block.abl", "storage.data.table.abl"] }, // 'ttFoo.MaximumValue'
270
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
271
+ ],
272
+ [
273
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
274
+ { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
275
+ { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "punctuation.terminator.abl"] }, // '.'
276
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
277
+ { "startIndex": 7, "endIndex": 9, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
278
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' '
279
+ { "startIndex": 10, "endIndex": 12, "scopes": ["source.abl", "comment.block.source.abl"] } // '*/'
280
+ ]
281
+ ];
282
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
252
283
  })
@@ -0,0 +1,22 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `if can-do("data",output-content-type) then.`;
6
+ let expectedTokens = [
7
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
8
+ { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
9
+ { "startIndex": 3, "endIndex": 9, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'can-do'
10
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
11
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
12
+ { "startIndex": 11, "endIndex": 15, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // 'data'
13
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
14
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
15
+ { "startIndex": 17, "endIndex": 36, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'output-content-type'
16
+ { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
17
+ { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl"] }, // ' '
18
+ { "startIndex": 38, "endIndex": 42, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
19
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
20
+ ];
21
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
22
+ })
@@ -0,0 +1,35 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `quoter(poPaymentLogParameter:TransactionPaymentParameter:RequestID).`;
6
+ let expectedTokens = [
7
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'quoter'
8
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
9
+ { "startIndex": 7, "endIndex": 28, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'poPaymentLogParameter'
10
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
11
+ { "startIndex": 29, "endIndex": 56, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'TransactionPaymentParameter'
12
+ { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
13
+ { "startIndex": 57, "endIndex": 66, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'RequestID'
14
+ { "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
15
+ { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
16
+ ];
17
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
18
+ })
19
+
20
+ describe('', () => {
21
+ let statement = `quoter(poPaymentLogParameter:LockTransactionPaymentParameter:RequestID).`;
22
+ let expectedTokens = [
23
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'quoter'
24
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
25
+ { "startIndex": 7, "endIndex": 28, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'poPaymentLogParameter'
26
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
27
+ { "startIndex": 29, "endIndex": 60, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'LockTransactionPaymentParameter'
28
+ { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
29
+ { "startIndex": 61, "endIndex": 70, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'RequestID'
30
+ { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
31
+ { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
32
+ ];
33
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
34
+ })
35
+
@@ -0,0 +1,21 @@
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.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
10
+ { "startIndex": 10, "endIndex": 17, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'asvasas'
11
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.double.complex.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
+ })
@@ -0,0 +1,108 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `vHandle = this-procedure.`;
6
+ let expectedTokens = [
7
+ { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "variable.other.abl"] }, // 'vHandle'
8
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
9
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
10
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
11
+ { "startIndex": 10, "endIndex": 24, "scopes": ["source.abl", "variable.language.abl"] }, // 'this-procedure'
12
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
13
+ ];
14
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
15
+ })
16
+
17
+ describe('', () => {
18
+ let statement = `vHandle = this-procedure:first-sibling.`;
19
+ let expectedTokens = [
20
+ { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "variable.other.abl"] }, // 'vHandle'
21
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
22
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
23
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
24
+ { "startIndex": 10, "endIndex": 24, "scopes": ["source.abl", "variable.language.abl"] }, // 'this-procedure'
25
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
26
+ { "startIndex": 25, "endIndex": 38, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'first-sibling'
27
+ { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
28
+ ];
29
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
30
+ })
31
+
32
+ describe('', () => {
33
+ let statement = `run ip (this-procedure).`;
34
+ let expectedTokens = [
35
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'run'
36
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
37
+ { "startIndex": 4, "endIndex": 6, "scopes": ["source.abl", "entity.name.procedure.abl"] }, // 'ip'
38
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
39
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
40
+ { "startIndex": 8, "endIndex": 22, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'this-procedure'
41
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
42
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
43
+ ];
44
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
45
+ })
46
+
47
+
48
+ describe('', () => {
49
+ let statement = `run ip (this-procedure, this-object).`;
50
+ let expectedTokens = [
51
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'run'
52
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
53
+ { "startIndex": 4, "endIndex": 6, "scopes": ["source.abl", "entity.name.procedure.abl"] }, // 'ip'
54
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
55
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
56
+ { "startIndex": 8, "endIndex": 22, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'this-procedure'
57
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
58
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
59
+ { "startIndex": 24, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'this-object'
60
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
61
+ { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
62
+ ];
63
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
64
+ })
65
+
66
+
67
+ describe('', () => {
68
+ let statement = `this-object().`;
69
+ let expectedTokens = [
70
+ { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'this-object'
71
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
72
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
73
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
74
+ ];
75
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
76
+ })
77
+
78
+
79
+ describe('', () => {
80
+ let statement = `objRef:Add(this-object).`;
81
+ let expectedTokens = [
82
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "variable.other.abl"] }, // 'objRef'
83
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
84
+ { "startIndex": 7, "endIndex": 10, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Add'
85
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
86
+ { "startIndex": 11, "endIndex": 22, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'this-object'
87
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
88
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
89
+ ];
90
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
91
+ })
92
+
93
+ describe('', () => {
94
+ let statement = `objRef:Add(file-info:handle).`;
95
+ let expectedTokens = [
96
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "variable.other.abl"] }, // 'objRef'
97
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
98
+ { "startIndex": 7, "endIndex": 10, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Add'
99
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
100
+ { "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'file-info'
101
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
102
+ { "startIndex": 21, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'handle'
103
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
104
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
105
+ ];
106
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
107
+ })
108
+
@@ -215,8 +215,8 @@ describe('', () => {
215
215
  let expectedTokens = [
216
216
  { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'using'
217
217
  { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
218
- { "startIndex": 6, "endIndex": 15, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'foo.bar.*'
219
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
218
+ { "startIndex": 6, "endIndex": 13, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'foo.bar'
219
+ { "startIndex": 13, "endIndex": 16, "scopes": ["source.abl", "meta.using.abl"] }, // '.* '
220
220
  { "startIndex": 16, "endIndex": 20, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'from'
221
221
  { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
222
222
  { "startIndex": 21, "endIndex": 28, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'propath'
@@ -226,15 +226,14 @@ describe('', () => {
226
226
  })
227
227
 
228
228
  describe('', () => {
229
- let statement = `using foo.bar.* ..`;
229
+ let statement = `using foo.bar.* .`;
230
230
 
231
231
  let expectedTokens = [
232
232
  { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'using'
233
233
  { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
234
- { "startIndex": 6, "endIndex": 15, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'foo.bar.*'
235
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
236
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.using.abl", "punctuation.terminator.abl"] }, // '.'
237
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
234
+ { "startIndex": 6, "endIndex": 13, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'foo.bar'
235
+ { "startIndex": 13, "endIndex": 16, "scopes": ["source.abl", "meta.using.abl"] }, // '.* '
236
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.using.abl", "punctuation.terminator.abl"] } // '.'
238
237
  ];
239
238
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
240
239
  })
@@ -25,7 +25,7 @@ describe('', () => {
25
25
  { "startIndex": 18, "endIndex": 22, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'from'
26
26
  { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
27
27
  { "startIndex": 23, "endIndex": 30, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'propath'
28
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.using.abl", "punctuation.terminator.abl"] } // '.'
28
+ { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.using.abl", "punctuation.terminator.abl"] } // '.'
29
29
  ];
30
30
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
31
31
  })
@@ -36,12 +36,12 @@ describe('', () => {
36
36
  let expectedTokens = [
37
37
  { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'using'
38
38
  { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
39
- { "startIndex": 6, "endIndex": 15, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'foo.bar.*'
40
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
39
+ { "startIndex": 6, "endIndex": 13, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'foo.bar'
40
+ { "startIndex": 13, "endIndex": 16, "scopes": ["source.abl", "meta.using.abl"] }, // '.* '
41
41
  { "startIndex": 16, "endIndex": 20, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'from'
42
42
  { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
43
43
  { "startIndex": 21, "endIndex": 28, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'propath'
44
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.using.abl", "punctuation.terminator.abl"] } // '.'
44
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.using.abl", "punctuation.terminator.abl"] } // '.'
45
45
  ];
46
46
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
47
47
  })
@@ -52,14 +52,13 @@ describe('', () => {
52
52
  let expectedTokens = [
53
53
  { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'using'
54
54
  { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
55
- { "startIndex": 6, "endIndex": 15, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'foo.bar.*'
56
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
55
+ { "startIndex": 6, "endIndex": 13, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'foo.bar'
56
+ { "startIndex": 13, "endIndex": 16, "scopes": ["source.abl", "meta.using.abl"] }, // '.* '
57
57
  { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.using.abl", "punctuation.terminator.abl"] } // '.'
58
58
  ];
59
59
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
60
60
  })
61
61
 
62
-
63
62
  describe('', () => {
64
63
  let statement = `using foo.bar.baz from propath.
65
64
  using foo.bar.* .
@@ -82,16 +81,16 @@ describe('', () => {
82
81
  { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
83
82
  { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'using'
84
83
  { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
85
- { "startIndex": 8, "endIndex": 17, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'foo.bar.*'
86
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
84
+ { "startIndex": 8, "endIndex": 15, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'foo.bar'
85
+ { "startIndex": 15, "endIndex": 18, "scopes": ["source.abl", "meta.using.abl"] }, // '.* '
87
86
  { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.using.abl", "punctuation.terminator.abl"] } // '.'
88
87
  ],
89
88
  [
90
89
  { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
91
90
  { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'using'
92
91
  { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
93
- { "startIndex": 8, "endIndex": 16, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'system.*'
94
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
92
+ { "startIndex": 8, "endIndex": 14, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'system'
93
+ { "startIndex": 14, "endIndex": 17, "scopes": ["source.abl", "meta.using.abl"] }, // '.* '
95
94
  { "startIndex": 17, "endIndex": 21, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'from'
96
95
  { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
97
96
  { "startIndex": 22, "endIndex": 30, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'assembly'
@@ -106,10 +105,24 @@ describe('', () => {
106
105
  { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.using.abl", "punctuation.terminator.abl"] } // '.'
107
106
  ],
108
107
  [
109
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl"] } // ''
108
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl"] } // ' '
110
109
  ]
111
-
112
110
  ];
113
111
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
114
112
  })
115
113
 
114
+ describe('', () => {
115
+ let statement = `using shared.wms.* from propath.`;
116
+
117
+ let expectedTokens = [
118
+ { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'using'
119
+ { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
120
+ { "startIndex": 6, "endIndex": 16, "scopes": ["source.abl", "meta.using.abl", "entity.name.package.abl"] }, // 'shared.wms'
121
+ { "startIndex": 16, "endIndex": 25, "scopes": ["source.abl", "meta.using.abl"] }, // '.* '
122
+ { "startIndex": 25, "endIndex": 29, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'from'
123
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.using.abl"] }, // ' '
124
+ { "startIndex": 30, "endIndex": 37, "scopes": ["source.abl", "meta.using.abl", "keyword.other.abl"] }, // 'propath'
125
+ { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.using.abl", "punctuation.terminator.abl"] } // '.'
126
+ ];
127
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
128
+ })