abl-tmlanguage 1.2.0 → 1.3.0

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.
Files changed (46) hide show
  1. package/README.md +42 -1
  2. package/abl.tmLanguage.json +1091 -307
  3. package/package.json +1 -1
  4. package/spec/annotations/annotation.spec.js +232 -0
  5. package/spec/blocks/finally-blocks.spec.js +90 -0
  6. package/spec/blocks/on-quit.spec.js +59 -0
  7. package/spec/comments/vscode-abl-issue#127.spec.js +165 -0
  8. package/spec/db-table-and-field/fields-except.spec.js +69 -0
  9. package/spec/db-table-and-field/foreach.spec.js +588 -0
  10. package/spec/db-table-and-field/issue#88.spec.js +120 -0
  11. package/spec/define-buffer/create-buffer.spec.js +110 -0
  12. package/spec/define-parameter/simple-single-line.spec.js +40 -0
  13. package/spec/define-temp-table/define-index.spec.js +138 -0
  14. package/spec/define-variable/simple-single-line.spec.js +81 -0
  15. package/spec/do/do-blocks.spec.js +139 -4
  16. package/spec/do/issue#3.spec.js +4 -2
  17. package/spec/function-call/nested-functions.spec.js +128 -0
  18. package/spec/function-call/vscode-abl-issue#19.spec.js +3 -3
  19. package/spec/include/abl-tmlanguage-issues#5.spec.js +40 -57
  20. package/spec/include/vscode-abl-issue#45.spec.js +2 -2
  21. package/spec/include/vscode-abl-issue#77.spec.js +129 -0
  22. package/spec/include/vscode-abl-issue#80.spec.js +32 -19
  23. package/spec/method-attribute-property-call/abl-method-attribute-call.spec.js +99 -0
  24. package/spec/method-attribute-property-call/connected-method.spec.js +30 -0
  25. package/spec/method-attribute-property-call/get-set-method-name.spec.js +96 -0
  26. package/spec/method-attribute-property-call/method-call.spec.js +112 -0
  27. package/spec/method-definition/constructor.spec.js +9 -9
  28. package/spec/method-definition/method.spec.js +139 -4
  29. package/spec/misc-statements/case-statement.spec.js +96 -0
  30. package/spec/misc-statements/copy-lob.spec.js +137 -0
  31. package/spec/misc-statements/if-then.spec.js +170 -0
  32. package/spec/misc-statements/return-statement.spec.js +53 -0
  33. package/spec/operators/operators.spec.js +78 -0
  34. package/spec/procedure-definition/empty-proc.spec.js +81 -0
  35. package/spec/procedure-definition/vscode-abl-issue#62.spec.js +1 -1
  36. package/spec/run-statement/run-statement.spec.js +162 -0
  37. package/spec/strings/translation-attribute.spec.js +52 -0
  38. package/spec/strings/vscode-abl-issue#28.spec.js +1 -1
  39. package/spec/type-name/argument.spec.js +1 -1
  40. package/spec/type-name/define-class.spec.js +67 -70
  41. package/spec/type-name/define-property.spec.js +1 -1
  42. package/spec/type-name/define-variable-property.spec.js +1 -1
  43. package/spec/type-name/get-class.spec.js +18 -18
  44. package/spec/type-name/parameter-as.spec.js +22 -22
  45. package/spec/type-name/type-name.spec.js +879 -0
  46. package/spec/type-name/type-name-spec.js +0 -587
@@ -0,0 +1,120 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `disp tbl1.cono tbl2.vendorno tbl3.custno tbl3.vendorno cono vendorno.`;
6
+ let expectedTokens = [
7
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'disp'
8
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
9
+ { "startIndex": 5, "endIndex": 14, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tbl1.cono'
10
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
11
+ { "startIndex": 15, "endIndex": 28, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tbl2.vendorno'
12
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl"] }, // ' '
13
+ { "startIndex": 29, "endIndex": 40, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tbl3.custno'
14
+ { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl"] }, // ' '
15
+ { "startIndex": 41, "endIndex": 54, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tbl3.vendorno'
16
+ { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl"] }, // ' '
17
+ { "startIndex": 55, "endIndex": 59, "scopes": ["source.abl", "variable.other.abl"] }, // 'cono'
18
+ { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl"] }, // ' '
19
+ { "startIndex": 60, "endIndex": 68, "scopes": ["source.abl", "variable.other.abl"] }, // 'vendorno'
20
+ { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
21
+ ];
22
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
23
+ })
24
+
25
+ describe('', () => {
26
+ let statement = `find fitaaaqfasf`;
27
+ let expectedTokens = [
28
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'find'
29
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
30
+ { "startIndex": 5, "endIndex": 16, "scopes": ["source.abl", "storage.data.table.abl"] } // 'fitaaaqfasf'
31
+ ];
32
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
33
+ })
34
+
35
+ describe('', () => {
36
+ let statement = `if first-of(tbl.accountno) then do:
37
+ for each tbl2 where tbl2.cono = 123
38
+ and tbl2.vendorno = tbl.vendorno
39
+ and tbl2.accountno = tbl.accountno
40
+ and tbl2.descriptioncd = "" no-lock:`;
41
+ let expectedTokens = [
42
+ [
43
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
44
+ { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
45
+ { "startIndex": 3, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'first-of'
46
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
47
+ { "startIndex": 12, "endIndex": 25, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tbl.accountno'
48
+ { "startIndex": 25, "endIndex": 27, "scopes": ["source.abl"] }, // ') '
49
+ { "startIndex": 27, "endIndex": 31, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
50
+ { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
51
+ { "startIndex": 32, "endIndex": 34, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'do'
52
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
53
+ ],
54
+ [
55
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
56
+ { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'for'
57
+ { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
58
+ { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'each'
59
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
60
+ { "startIndex": 11, "endIndex": 15, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tbl2'
61
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
62
+ { "startIndex": 16, "endIndex": 21, "scopes": ["source.abl", "keyword.other.abl"] }, // 'where'
63
+ { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
64
+ { "startIndex": 22, "endIndex": 31, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tbl2.cono'
65
+ { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
66
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
67
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
68
+ { "startIndex": 34, "endIndex": 37, "scopes": ["source.abl", "constant.numeric.source.abl"] } // '123'
69
+ ],
70
+ [
71
+ { "startIndex": 0, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
72
+ { "startIndex": 18, "endIndex": 21, "scopes": ["source.abl", "keyword.other.abl"] }, // 'and'
73
+ { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
74
+ { "startIndex": 22, "endIndex": 35, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tbl2.vendorno'
75
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl"] }, // ' '
76
+ { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
77
+ { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl"] }, // ' '
78
+ { "startIndex": 38, "endIndex": 50, "scopes": ["source.abl", "storage.data.table.abl"] } // 'tbl.vendorno'
79
+ ],
80
+ [
81
+ { "startIndex": 0, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
82
+ { "startIndex": 18, "endIndex": 21, "scopes": ["source.abl", "keyword.other.abl"] }, // 'and'
83
+ { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
84
+ { "startIndex": 22, "endIndex": 36, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tbl2.accountno'
85
+ { "startIndex": 36, "endIndex": 38, "scopes": ["source.abl"] }, // ' '
86
+ { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
87
+ { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl"] }, // ' '
88
+ { "startIndex": 40, "endIndex": 53, "scopes": ["source.abl", "storage.data.table.abl"] } // 'tbl.accountno'
89
+ ],
90
+ [
91
+ { "startIndex": 0, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
92
+ { "startIndex": 18, "endIndex": 21, "scopes": ["source.abl", "keyword.other.abl"] }, // 'and'
93
+ { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
94
+ { "startIndex": 22, "endIndex": 40, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tbl2.descriptioncd'
95
+ { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl"] }, // ' '
96
+ { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
97
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl"] }, // ' '
98
+ { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
99
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
100
+ { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
101
+ { "startIndex": 46, "endIndex": 53, "scopes": ["source.abl", "keyword.other.abl"] }, // 'no-lock'
102
+ { "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
103
+ ]
104
+ ];
105
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
106
+ })
107
+
108
+ describe('', () => {
109
+ let statement = `//exclusive-lock:
110
+ //no-lock:`;
111
+ let expectedTokens = [
112
+ [
113
+ { "startIndex": 0, "endIndex": 17, "scopes": ["source.abl", "comment.line.double-slash.abl"] } // '//exclusive-lock:'
114
+ ],
115
+ [
116
+ { "startIndex": 0, "endIndex": 10, "scopes": ["source.abl", "comment.line.double-slash.abl"] } // '//no-lock:'
117
+ ]
118
+ ];
119
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
120
+ })
@@ -0,0 +1,110 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `CREATE BUFFER hBuffer FOR TABLE "Customer".`;
6
+ let expectedTokens = [
7
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'CREATE'
8
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
9
+ { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'BUFFER'
10
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
11
+ { "startIndex": 14, "endIndex": 21, "scopes": ["source.abl", "variable.other.abl"] }, // 'hBuffer'
12
+ { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
13
+ { "startIndex": 22, "endIndex": 25, "scopes": ["source.abl", "keyword.other.abl"] }, // 'FOR'
14
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
15
+ { "startIndex": 26, "endIndex": 31, "scopes": ["source.abl", "keyword.other.abl"] }, // 'TABLE'
16
+ { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
17
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
18
+ { "startIndex": 33, "endIndex": 41, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'Customer'
19
+ { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
20
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
21
+ ];
22
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
23
+ })
24
+
25
+ describe('', () => {
26
+ let statement = `CREATE BUFFER hbuf1
27
+ FOR TABLE BUFFER tt1:HANDLE. /* From static tt's default buffer */`;
28
+ let expectedTokens = [
29
+ [
30
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'CREATE'
31
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
32
+ { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'BUFFER'
33
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
34
+ { "startIndex": 14, "endIndex": 19, "scopes": ["source.abl", "variable.other.abl"] } // 'hbuf1'
35
+ ],
36
+ [
37
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
38
+ { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'FOR'
39
+ { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
40
+ { "startIndex": 6, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'TABLE'
41
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
42
+ { "startIndex": 12, "endIndex": 18, "scopes": ["source.abl", "keyword.other.abl"] }, // 'BUFFER'
43
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
44
+ { "startIndex": 19, "endIndex": 22, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tt1'
45
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
46
+ { "startIndex": 23, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'HANDLE'
47
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.terminator.abl"] }, // '.'
48
+ { "startIndex": 30, "endIndex": 37, "scopes": ["source.abl"] }, // ' '
49
+ { "startIndex": 37, "endIndex": 39, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
50
+ { "startIndex": 39, "endIndex": 72, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' From static tt's default buffer '
51
+ { "startIndex": 72, "endIndex": 74, "scopes": ["source.abl", "comment.block.source.abl"] } // '*/'
52
+ ]
53
+ ];
54
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
55
+ })
56
+
57
+ describe('', () => {
58
+ let statement = `CREATE BUFFER hbuf1 FOR TABLE hbuf. /* From static tt's default buffer */`;
59
+ let expectedTokens = [
60
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'CREATE'
61
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
62
+ { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'BUFFER'
63
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
64
+ { "startIndex": 14, "endIndex": 19, "scopes": ["source.abl", "variable.other.abl"] }, // 'hbuf1'
65
+ { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
66
+ { "startIndex": 20, "endIndex": 23, "scopes": ["source.abl", "keyword.other.abl"] }, // 'FOR'
67
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
68
+ { "startIndex": 24, "endIndex": 29, "scopes": ["source.abl", "keyword.other.abl"] }, // 'TABLE'
69
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl"] }, // ' '
70
+ { "startIndex": 30, "endIndex": 34, "scopes": ["source.abl", "variable.other.abl"] }, // 'hbuf'
71
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "punctuation.terminator.abl"] }, // '.'
72
+ { "startIndex": 35, "endIndex": 37, "scopes": ["source.abl"] }, // ' '
73
+ { "startIndex": 37, "endIndex": 39, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
74
+ { "startIndex": 39, "endIndex": 72, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' From static tt's default buffer '
75
+ { "startIndex": 72, "endIndex": 74, "scopes": ["source.abl", "comment.block.source.abl"] } // '*/'
76
+ ];
77
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
78
+ })
79
+
80
+ describe('', () => {
81
+ let statement = `CREATE BUFFER hbuf1
82
+ FOR TABLE TEMP-TABLE tt1:HANDLE. /* From static tt's handle */`;
83
+ let expectedTokens = [
84
+ [
85
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'CREATE'
86
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
87
+ { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'BUFFER'
88
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
89
+ { "startIndex": 14, "endIndex": 19, "scopes": ["source.abl", "variable.other.abl"] } // 'hbuf1'
90
+ ],
91
+ [
92
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
93
+ { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'FOR'
94
+ { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
95
+ { "startIndex": 6, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'TABLE'
96
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
97
+ { "startIndex": 12, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'TEMP-TABLE'
98
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
99
+ { "startIndex": 23, "endIndex": 26, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'tt1'
100
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
101
+ { "startIndex": 27, "endIndex": 33, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'HANDLE'
102
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "punctuation.terminator.abl"] }, // '.'
103
+ { "startIndex": 34, "endIndex": 37, "scopes": ["source.abl"] }, // ' '
104
+ { "startIndex": 37, "endIndex": 39, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
105
+ { "startIndex": 39, "endIndex": 64, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' From static tt's handle '
106
+ { "startIndex": 64, "endIndex": 66, "scopes": ["source.abl", "comment.block.source.abl"] } // '*/'
107
+ ]
108
+ ];
109
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
110
+ })
@@ -114,3 +114,43 @@ describe('', () => {
114
114
  ];
115
115
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
116
116
  })
117
+
118
+ describe('', () => {
119
+ let statement = `define input parameter pcIn as longchar no-undo.`;
120
+ let expectedTokens = [
121
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
122
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
123
+ { "startIndex": 7, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'input'
124
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
125
+ { "startIndex": 13, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'parameter'
126
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
127
+ { "startIndex": 23, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "variable.parameter.abl"] }, // 'pcIn'
128
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
129
+ { "startIndex": 28, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
130
+ { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
131
+ { "startIndex": 31, "endIndex": 39, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'longchar'
132
+ { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
133
+ { "startIndex": 40, "endIndex": 47, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'no-undo'
134
+ { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
135
+ ];
136
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
137
+ })
138
+
139
+ describe('', () => {
140
+ let statement = `define output parameter pcOut as longchar.`;
141
+ let expectedTokens = [
142
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
143
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
144
+ { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'output'
145
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
146
+ { "startIndex": 14, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'parameter'
147
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
148
+ { "startIndex": 24, "endIndex": 29, "scopes": ["source.abl", "meta.define.abl", "variable.parameter.abl"] }, // 'pcOut'
149
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
150
+ { "startIndex": 30, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
151
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
152
+ { "startIndex": 33, "endIndex": 41, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'longchar'
153
+ { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
154
+ ];
155
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
156
+ })
@@ -0,0 +1,138 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `define temp-table ttBlah no-undo
6
+ field f12 as chara
7
+ field d3 as datetime-tz
8
+ index idx1 as primary unique f12 ascending.`;
9
+ let expectedTokens = [
10
+ [
11
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
12
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
13
+ { "startIndex": 7, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'temp-table'
14
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
15
+ { "startIndex": 18, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'ttBlah'
16
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
17
+ { "startIndex": 25, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] } // 'no-undo'
18
+ ],
19
+ [
20
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
21
+ { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'field'
22
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
23
+ { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'f12'
24
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
25
+ { "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
26
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
27
+ { "startIndex": 15, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] } // 'chara'
28
+ ],
29
+ [
30
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
31
+ { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'field'
32
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
33
+ { "startIndex": 8, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'd3'
34
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
35
+ { "startIndex": 11, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
36
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
37
+ { "startIndex": 14, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] } // 'datetime-tz'
38
+ ],
39
+ [
40
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
41
+ { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'index'
42
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
43
+ { "startIndex": 8, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'idx1'
44
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
45
+ { "startIndex": 13, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
46
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
47
+ { "startIndex": 16, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'primary'
48
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
49
+ { "startIndex": 24, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'unique'
50
+ { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
51
+ { "startIndex": 31, "endIndex": 34, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'f12'
52
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
53
+ { "startIndex": 35, "endIndex": 44, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'ascending'
54
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
55
+ ]
56
+ ];
57
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
58
+ })
59
+
60
+ describe('', () => {
61
+ let statement = `define temp-table ttBlah no-undo
62
+ field f12 as chara
63
+ field d3 as datetime-tz
64
+ index idx1 as primary unique f12 ascending
65
+ index Name d3
66
+ index gargh word-index f12
67
+ .`;
68
+ let expectedTokens = [
69
+ [
70
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
71
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
72
+ { "startIndex": 7, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'temp-table'
73
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
74
+ { "startIndex": 18, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'ttBlah'
75
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
76
+ { "startIndex": 25, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] } // 'no-undo'
77
+ ],
78
+ [
79
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
80
+ { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'field'
81
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
82
+ { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'f12'
83
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
84
+ { "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
85
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
86
+ { "startIndex": 15, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] } // 'chara'
87
+ ],
88
+ [
89
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
90
+ { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'field'
91
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
92
+ { "startIndex": 8, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'd3'
93
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
94
+ { "startIndex": 11, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
95
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
96
+ { "startIndex": 14, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] } // 'datetime-tz'
97
+ ],
98
+ [
99
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
100
+ { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'index'
101
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
102
+ { "startIndex": 8, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'idx1'
103
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
104
+ { "startIndex": 13, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
105
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
106
+ { "startIndex": 16, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'primary'
107
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
108
+ { "startIndex": 24, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'unique'
109
+ { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
110
+ { "startIndex": 31, "endIndex": 34, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'f12'
111
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
112
+ { "startIndex": 35, "endIndex": 44, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] } // 'ascending'
113
+ ],
114
+ [
115
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
116
+ { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'index'
117
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
118
+ { "startIndex": 8, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'Name'
119
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
120
+ { "startIndex": 13, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] } // 'd3'
121
+ ],
122
+ [
123
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
124
+ { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'index'
125
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
126
+ { "startIndex": 8, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] }, // 'gargh'
127
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
128
+ { "startIndex": 14, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'word-index'
129
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
130
+ { "startIndex": 25, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl", "storage.data.table.abl"] } // 'f12'
131
+ ],
132
+ [
133
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
134
+ { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"]} // '.'
135
+ ]
136
+ ];
137
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
138
+ })
@@ -79,6 +79,7 @@ describe('', () => {
79
79
  ];
80
80
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
81
81
  })
82
+
82
83
  describe('', () => {
83
84
  let statement = `def var variable-name as int no-undo .`;
84
85
  let expectedTokens = [
@@ -98,3 +99,83 @@ describe('', () => {
98
99
  ];
99
100
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
100
101
  })
102
+
103
+ describe('', () => {
104
+ let statement = `def var bob as i.`;
105
+ let expectedTokens = [
106
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'def'
107
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
108
+ { "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
109
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
110
+ { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'bob'
111
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
112
+ { "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
113
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
114
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'i'
115
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
116
+ ];
117
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
118
+ })
119
+
120
+ describe('', () => {
121
+ let statement = `def var bob as c.`;
122
+ let expectedTokens = [
123
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'def'
124
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
125
+ { "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
126
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
127
+ { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'bob'
128
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
129
+ { "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
130
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
131
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'c'
132
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
133
+ ];
134
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
135
+ })
136
+
137
+ describe('', () => {
138
+ let statement = `def var bob as l initial false.`;
139
+ let expectedTokens = [
140
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'def'
141
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
142
+ { "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
143
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
144
+ { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'bob'
145
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
146
+ { "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
147
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
148
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'l'
149
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
150
+ { "startIndex": 17, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'initial'
151
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
152
+ { "startIndex": 25, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl", "constant.language.abl"] }, // 'false'
153
+ { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
154
+ ];
155
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
156
+ })
157
+
158
+ describe('', () => {
159
+ let statement = `def var bob as da initial today format 99/99/99.`;
160
+ let expectedTokens = [
161
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'def'
162
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
163
+ { "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
164
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
165
+ { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'bob'
166
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
167
+ { "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
168
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
169
+ { "startIndex": 15, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'da'
170
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
171
+ { "startIndex": 18, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'initial'
172
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
173
+ { "startIndex": 26, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "constant.language.abl"] }, // 'today'
174
+ { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
175
+ { "startIndex": 32, "endIndex": 38, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'format'
176
+ { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
177
+ { "startIndex": 39, "endIndex": 47, "scopes": ["source.abl", "meta.define.abl", "constant.language.source.abl"] }, // '99/99/99'
178
+ { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
179
+ ];
180
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
181
+ })