abl-tmlanguage 1.3.28 → 1.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +8 -9
  2. package/abl.tmLanguage.json +60 -79
  3. package/package.json +5 -2
  4. package/.github/workflows/ci.yml +0 -36
  5. package/CHANGELOG.md +0 -139
  6. package/abl-functions.txt +0 -548
  7. package/abl-keywords.txt +0 -416
  8. package/abl-methods.txt +0 -1053
  9. package/index.mjs +0 -508
  10. package/spec/analyze-suspend-resume/analyze-suspend-resume.spec.js +0 -17
  11. package/spec/annotations/annotation.spec.js +0 -366
  12. package/spec/array-extent/issue#5.spec.js +0 -26
  13. package/spec/blocks/block-labels.spec.js +0 -201
  14. package/spec/blocks/block-options.spec.js +0 -174
  15. package/spec/blocks/finally-blocks.spec.js +0 -90
  16. package/spec/blocks/on-quit.spec.js +0 -59
  17. package/spec/comments/comment-in-block-statement.spec.js +0 -153
  18. package/spec/comments/comment-in-for-each.spec.js +0 -105
  19. package/spec/comments/comment-in-function-args.spec.js +0 -88
  20. package/spec/comments/spacious-comment.spec.js +0 -73
  21. package/spec/comments/vscode-abl-issue#127.spec.js +0 -165
  22. package/spec/create-widgets/create-window.spec.js +0 -224
  23. package/spec/db-table-and-field/buffer-copy.spec.js +0 -246
  24. package/spec/db-table-and-field/create-alias.spec.js +0 -131
  25. package/spec/db-table-and-field/create-record.spec.js +0 -75
  26. package/spec/db-table-and-field/double-colon-access.spec.js +0 -154
  27. package/spec/db-table-and-field/field-in-function.spec.js +0 -58
  28. package/spec/db-table-and-field/fields-except.spec.js +0 -68
  29. package/spec/db-table-and-field/find-record.spec.js +0 -158
  30. package/spec/db-table-and-field/foreach.spec.js +0 -588
  31. package/spec/db-table-and-field/issue#88.spec.js +0 -121
  32. package/spec/db-table-and-field/new-record.spec.js +0 -250
  33. package/spec/db-table-and-field/query-get.spec.js +0 -137
  34. package/spec/define/define-browse.spec.js +0 -454
  35. package/spec/define/define-button.spec.js +0 -233
  36. package/spec/define/define-query.spec.js +0 -144
  37. package/spec/define/define-rectangle.spec.js +0 -47
  38. package/spec/define-buffer/create-buffer.spec.js +0 -212
  39. package/spec/define-buffer/simple-single-line.spec.js +0 -155
  40. package/spec/define-enum/type-name.spec.js +0 -200
  41. package/spec/define-event/simple-single-line.spec.js +0 -61
  42. package/spec/define-frame/issue#173.spec.js +0 -580
  43. package/spec/define-parameter/simple-single-line.spec.js +0 -228
  44. package/spec/define-property/property-getter.spec.js +0 -70
  45. package/spec/define-stream/simple-single-line.spec.js +0 -42
  46. package/spec/define-temp-table/define-dataset.spec.js +0 -217
  47. package/spec/define-temp-table/define-temp-table.spec.js +0 -605
  48. package/spec/define-variable/define-like.spec.js +0 -78
  49. package/spec/define-variable/extent.spec.js +0 -778
  50. package/spec/define-variable/initial.spec.js +0 -126
  51. package/spec/define-variable/issue#6.spec.js +0 -280
  52. package/spec/define-variable/issue#9.spec.js +0 -45
  53. package/spec/define-variable/simple-single-line.spec.js +0 -181
  54. package/spec/define-variable/single-line-with-a-comment-at-the-end.spec.js +0 -62
  55. package/spec/define-variable/single-line-with-a-space-and-a-comment-at-the-end.spec.js +0 -65
  56. package/spec/define-variable/tm-issue#2.spec.js +0 -25
  57. package/spec/define-variable/var-statement.spec.js +0 -467
  58. package/spec/do/do-blocks.spec.js +0 -289
  59. package/spec/do/issue#3.spec.js +0 -83
  60. package/spec/do/stop-after.spec.js +0 -79
  61. package/spec/for-each/for-each.spec.js +0 -111
  62. package/spec/for-each/issue#321.spec.js +0 -116
  63. package/spec/for-each/vscode-abl.issue#166.spec.js +0 -83
  64. package/spec/function-call/can-find.spec.js +0 -239
  65. package/spec/function-call/include-in-argument.spec.js +0 -120
  66. package/spec/function-call/misc-abl-functions.spec.js +0 -59
  67. package/spec/function-call/nested-functions.spec.js +0 -245
  68. package/spec/function-call/pass-table.spec.js +0 -116
  69. package/spec/function-call/set-size.spec.js +0 -56
  70. package/spec/function-call/udf-calls.spec.js +0 -50
  71. package/spec/function-call/vscode-abl-issue#19.spec.js +0 -129
  72. package/spec/function-definition/vscode-abl-issue#166.spec.js +0 -446
  73. package/spec/global-scoped-define/global-define.spec.js +0 -64
  74. package/spec/global-scoped-define/scoped-define-with-procedure-keyword.spec.js +0 -70
  75. package/spec/global-scoped-define/undefine.spec.js +0 -44
  76. package/spec/include/abl-tmlanguage-issues#5.spec.js +0 -40
  77. package/spec/include/include-file-name.spec.js +0 -267
  78. package/spec/include/unnamed-arguments.spec.js +0 -38
  79. package/spec/include/vscode-abl-issue#45.spec.js +0 -20
  80. package/spec/include/vscode-abl-issue#77.spec.js +0 -128
  81. package/spec/include/vscode-abl-issue#80.spec.js +0 -50
  82. package/spec/input-output/input-from.spec.js +0 -504
  83. package/spec/input-output/output-to.spec.js +0 -456
  84. package/spec/method-attribute-property-call/abl-method-attribute-call.spec.js +0 -98
  85. package/spec/method-attribute-property-call/connected-method.spec.js +0 -29
  86. package/spec/method-attribute-property-call/datset-table-attribute-method-call.spec.js +0 -53
  87. package/spec/method-attribute-property-call/get-set-method-name.spec.js +0 -140
  88. package/spec/method-attribute-property-call/method-call.spec.js +0 -268
  89. package/spec/method-attribute-property-call/nested-property-call.spec.js +0 -18
  90. package/spec/method-attribute-property-call/unqualified-method-call.spec.js +0 -41
  91. package/spec/method-definition/constructor.spec.js +0 -174
  92. package/spec/method-definition/method.spec.js +0 -541
  93. package/spec/misc-statements/array-for.spec.js +0 -21
  94. package/spec/misc-statements/case-statement.spec.js +0 -96
  95. package/spec/misc-statements/class-in-var-name.spec.js +0 -204
  96. package/spec/misc-statements/copy-lob.spec.js +0 -144
  97. package/spec/misc-statements/def-in-name.spec.js +0 -20
  98. package/spec/misc-statements/delete-objects.spec.js +0 -65
  99. package/spec/misc-statements/do-in-name.spec.js +0 -259
  100. package/spec/misc-statements/event-subscribe.spec.js +0 -308
  101. package/spec/misc-statements/export-delimiter.spec.js +0 -37
  102. package/spec/misc-statements/guid.spec.js +0 -97
  103. package/spec/misc-statements/if-then.spec.js +0 -454
  104. package/spec/misc-statements/issue#173.spec.js +0 -99
  105. package/spec/misc-statements/message-statement.spec.js +0 -21
  106. package/spec/misc-statements/record-buffer-functions.spec.js +0 -73
  107. package/spec/misc-statements/release.spec.js +0 -41
  108. package/spec/misc-statements/return-statement.spec.js +0 -64
  109. package/spec/misc-statements/skip-statement-and-fuction.spec.js +0 -35
  110. package/spec/misc-statements/system-handles.spec.js +0 -122
  111. package/spec/numbers/scientific-notation.spec.js +0 -212
  112. package/spec/operators/operators.spec.js +0 -149
  113. package/spec/operators/safe-navigation-operator.spec.js +0 -246
  114. package/spec/preprocesors/issue166.spec.js +0 -91
  115. package/spec/preprocesors/preprocessor-functions.spec.js +0 -77
  116. package/spec/preprocesors/proparse-preprocessor.spec.js +0 -90
  117. package/spec/procedure-definition/empty-proc.spec.js +0 -134
  118. package/spec/procedure-definition/trigger-procedure.spec.js +0 -132
  119. package/spec/procedure-definition/vscode-abl-issue#22.spec.js +0 -46
  120. package/spec/procedure-definition/vscode-abl-issue#26.spec.js +0 -31
  121. package/spec/procedure-definition/vscode-abl-issue#325.spec.js +0 -88
  122. package/spec/procedure-definition/vscode-abl-issue#62.spec.js +0 -39
  123. package/spec/run-statement/run-statement.spec.js +0 -868
  124. package/spec/shared.js +0 -104
  125. package/spec/strings/translation-attribute.spec.js +0 -52
  126. package/spec/strings/vscode-abl-issue#11.spec.js +0 -56
  127. package/spec/strings/vscode-abl-issue#28.spec.js +0 -31
  128. package/spec/type-name/argument.spec.js +0 -206
  129. package/spec/type-name/cast.spec.js +0 -163
  130. package/spec/type-name/define-class.spec.js +0 -555
  131. package/spec/type-name/define-enum.spec.js +0 -44
  132. package/spec/type-name/define-interface.spec.js +0 -159
  133. package/spec/type-name/define-property.spec.js +0 -301
  134. package/spec/type-name/define-temp-table.spec.js +0 -434
  135. package/spec/type-name/define-type-spec.js +0 -435
  136. package/spec/type-name/define-variable-property.spec.js +0 -264
  137. package/spec/type-name/define-variable.spec.js +0 -386
  138. package/spec/type-name/get-class.spec.js +0 -91
  139. package/spec/type-name/new.spec.js +0 -185
  140. package/spec/type-name/parameter-as.spec.js +0 -978
  141. package/spec/type-name/type-name.spec.js +0 -880
  142. package/spec/type-name/using.spec.js +0 -160
@@ -1,504 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement =
6
- `input from c:/temp/blah3.txt.`;
7
-
8
- let expectedTokens = [
9
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
10
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
11
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
12
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
13
- { "startIndex": 11, "endIndex": 28, "scopes": ["source.abl", "storage.other.opsys-device.abl"] }, // 'c:/temp/blah3.txt'
14
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
15
- ];
16
-
17
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
18
- })
19
-
20
- describe('', () => {
21
- let statement =
22
- `input from c:\\temp\\blah3.txt.`;
23
-
24
- let expectedTokens = [
25
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
26
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
27
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
28
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
29
- { "startIndex": 11, "endIndex": 28, "scopes": ["source.abl", "storage.other.opsys-device.abl"] }, // 'c:\temp\blah3.txt'
30
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
31
- ];
32
-
33
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
34
- })
35
-
36
- describe('', () => {
37
- let statement =
38
- `input stream-handle hhh from c:/temp/blah3.txt.`;
39
-
40
- let expectedTokens = [
41
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
42
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
43
- { "startIndex": 6, "endIndex": 19, "scopes": ["source.abl", "keyword.other.abl"] }, // 'stream-handle'
44
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
45
- { "startIndex": 20, "endIndex": 23, "scopes": ["source.abl", "variable.other.abl"] }, // 'hhh'
46
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
47
- { "startIndex": 24, "endIndex": 28, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
48
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl"] }, // ' '
49
- { "startIndex": 29, "endIndex": 46, "scopes": ["source.abl", "storage.other.opsys-device.abl"] }, // 'c:/temp/blah3.txt'
50
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
51
- ];
52
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
53
- })
54
-
55
- describe('', () => {
56
- let statement =
57
- `input stream streamS from c:/temp/blah3.txt.`;
58
-
59
- let expectedTokens = [
60
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
61
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
62
- { "startIndex": 6, "endIndex": 12, "scopes": ["source.abl", "keyword.other.abl"] }, // 'stream'
63
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
64
- { "startIndex": 13, "endIndex": 20, "scopes": ["source.abl", "variable.other.abl"] }, // 'streamS'
65
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
66
- { "startIndex": 21, "endIndex": 25, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
67
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
68
- { "startIndex": 26, "endIndex": 43, "scopes": ["source.abl", "storage.other.opsys-device.abl"] }, // 'c:/temp/blah3.txt'
69
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
70
- ];
71
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
72
- })
73
-
74
- describe('', () => {
75
- let statement =
76
- `input stream streamS from c:\\temp\\blah3.txt.`;
77
-
78
- let expectedTokens = [
79
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
80
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
81
- { "startIndex": 6, "endIndex": 12, "scopes": ["source.abl", "keyword.other.abl"] }, // 'stream'
82
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
83
- { "startIndex": 13, "endIndex": 20, "scopes": ["source.abl", "variable.other.abl"] }, // 'streamS'
84
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
85
- { "startIndex": 21, "endIndex": 25, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
86
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
87
- { "startIndex": 26, "endIndex": 43, "scopes": ["source.abl", "storage.other.opsys-device.abl"] }, // 'c:\temp\blah3.txt'
88
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
89
- ];
90
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
91
- })
92
-
93
- describe('', () => {
94
- let statement =
95
- `input from c:/blah.`;
96
-
97
- let expectedTokens = [
98
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
99
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
100
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
101
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
102
- { "startIndex": 11, "endIndex": 18, "scopes": ["source.abl", "storage.other.opsys-device.abl"] }, // 'c:/blah'
103
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
104
- ];
105
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
106
- })
107
-
108
- describe('', () => {
109
- let statement =
110
- `input from c:/blah .`;
111
-
112
- let expectedTokens = [
113
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
114
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
115
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
116
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
117
- { "startIndex": 11, "endIndex": 18, "scopes": ["source.abl", "storage.other.opsys-device.abl"] }, // 'c:/blah'
118
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
119
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
120
- ];
121
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
122
- })
123
-
124
- describe('', () => {
125
- let statement =
126
- `input from "c:/blah".`;
127
-
128
- let expectedTokens = [
129
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
130
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
131
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
132
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
133
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
134
- { "startIndex": 12, "endIndex": 19, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'c:/blah'
135
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
136
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
137
- ];
138
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
139
- })
140
-
141
- describe('', () => {
142
- let statement =
143
- `input from /blah/path/to/file.bin.`;
144
-
145
- let expectedTokens = [
146
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
147
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
148
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
149
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
150
- { "startIndex": 11, "endIndex": 33, "scopes": ["source.abl", "storage.other.opsys-device.abl"] }, // '/blah/path/to/file.bin'
151
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
152
- ];
153
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
154
- })
155
-
156
- describe('', () => {
157
- let statement =
158
- `input from terminal .`;
159
-
160
- let expectedTokens = [
161
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
162
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
163
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
164
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
165
- { "startIndex": 11, "endIndex": 19, "scopes": ["source.abl", "support.function.abl"] }, // 'terminal'
166
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
167
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
168
- ];
169
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
170
- })
171
-
172
- describe('', () => {
173
- let statement =
174
- `input from value("path/to/file") .`;
175
-
176
- let expectedTokens = [
177
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
178
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
179
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
180
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
181
- { "startIndex": 11, "endIndex": 16, "scopes": ["source.abl", "support.function.abl"] }, // 'value'
182
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
183
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
184
- { "startIndex": 18, "endIndex": 30, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'path/to/file'
185
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
186
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
187
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl"] }, // ' '
188
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
189
- ];
190
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
191
- })
192
-
193
- describe('', () => {
194
- let statement =
195
- `input from value(cv-file-name) .`;
196
-
197
- let expectedTokens = [
198
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
199
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
200
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
201
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
202
- { "startIndex": 11, "endIndex": 16, "scopes": ["source.abl", "support.function.abl"] }, // 'value'
203
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
204
- { "startIndex": 17, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cv-file-name'
205
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
206
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
207
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
208
- ];
209
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
210
- })
211
-
212
- describe('', () => {
213
- let statement =
214
- `input STREAM dump from VALUE(fil) LOB-DIR VALUE(lobdir)
215
- NO-ECHO NO-MAP NO-CONVERT.`;
216
-
217
- let expectedTokens = [
218
- [
219
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
220
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
221
- { "startIndex": 6, "endIndex": 12, "scopes": ["source.abl", "keyword.other.abl"] }, // 'STREAM'
222
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
223
- { "startIndex": 13, "endIndex": 17, "scopes": ["source.abl", "variable.other.abl"] }, // 'dump'
224
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
225
- { "startIndex": 18, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
226
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
227
- { "startIndex": 23, "endIndex": 28, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
228
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
229
- { "startIndex": 29, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'fil'
230
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
231
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
232
- { "startIndex": 34, "endIndex": 41, "scopes": ["source.abl", "keyword.other.abl"] }, // 'LOB-DIR'
233
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl"] }, // ' '
234
- { "startIndex": 42, "endIndex": 47, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
235
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
236
- { "startIndex": 48, "endIndex": 54, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'lobdir'
237
- { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
238
- ],
239
- [
240
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
241
- { "startIndex": 7, "endIndex": 14, "scopes": ["source.abl", "keyword.other.abl"] }, // 'NO-ECHO'
242
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
243
- { "startIndex": 15, "endIndex": 21, "scopes": ["source.abl", "keyword.other.abl"] }, // 'NO-MAP'
244
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
245
- { "startIndex": 22, "endIndex": 32, "scopes": ["source.abl", "keyword.other.abl"] }, // 'NO-CONVERT'
246
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
247
- ]
248
- ];
249
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
250
- })
251
-
252
- describe('', () => {
253
- let statement =
254
- `input STREAM dump from VALUE(fil) NO-ECHO
255
- MAP VALUE(SUBSTRING(user_env[3],5,-1,"character"))
256
- NO-CONVERT.`;
257
-
258
- let expectedTokens = [
259
- [
260
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
261
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
262
- { "startIndex": 6, "endIndex": 12, "scopes": ["source.abl", "keyword.other.abl"] }, // 'STREAM'
263
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
264
- { "startIndex": 13, "endIndex": 17, "scopes": ["source.abl", "variable.other.abl"] }, // 'dump'
265
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
266
- { "startIndex": 18, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
267
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
268
- { "startIndex": 23, "endIndex": 28, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
269
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
270
- { "startIndex": 29, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'fil'
271
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
272
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
273
- { "startIndex": 34, "endIndex": 41, "scopes": ["source.abl", "keyword.other.abl"] } // 'NO-ECHO'
274
- ],
275
- [
276
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
277
- { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'MAP'
278
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
279
- { "startIndex": 12, "endIndex": 17, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
280
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
281
- { "startIndex": 18, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'SUBSTRING'
282
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
283
- { "startIndex": 28, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'user_env'
284
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
285
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '3'
286
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
287
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
288
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '5'
289
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
290
- { "startIndex": 42, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '-1'
291
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
292
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
293
- { "startIndex": 46, "endIndex": 55, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'character'
294
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
295
- { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
296
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
297
- ],
298
- [
299
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
300
- { "startIndex": 8, "endIndex": 18, "scopes": ["source.abl", "keyword.other.abl"] }, // 'NO-CONVERT'
301
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
302
- ]
303
- ];
304
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
305
- })
306
-
307
- describe('', () => {
308
- let statement =
309
- `input STREAM dump from VALUE(fil) LOB-DIR VALUE(lobdir) NO-ECHO
310
- MAP VALUE(SUBSTRING(user_env[3],5,-1,"character"))
311
- CONVERT SOURCE SESSION:CHARSET TARGET user_env[5].`;
312
-
313
- let expectedTokens = [
314
- [
315
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
316
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
317
- { "startIndex": 6, "endIndex": 12, "scopes": ["source.abl", "keyword.other.abl"] }, // 'STREAM'
318
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
319
- { "startIndex": 13, "endIndex": 17, "scopes": ["source.abl", "variable.other.abl"] }, // 'dump'
320
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
321
- { "startIndex": 18, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
322
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
323
- { "startIndex": 23, "endIndex": 28, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
324
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
325
- { "startIndex": 29, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'fil'
326
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
327
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
328
- { "startIndex": 34, "endIndex": 41, "scopes": ["source.abl", "keyword.other.abl"] }, // 'LOB-DIR'
329
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl"] }, // ' '
330
- { "startIndex": 42, "endIndex": 47, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
331
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
332
- { "startIndex": 48, "endIndex": 54, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'lobdir'
333
- { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
334
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl"] }, // ' '
335
- { "startIndex": 56, "endIndex": 63, "scopes": ["source.abl", "keyword.other.abl"] } // 'NO-ECHO'
336
- ],
337
- [
338
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
339
- { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'MAP'
340
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
341
- { "startIndex": 12, "endIndex": 17, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
342
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
343
- { "startIndex": 18, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'SUBSTRING'
344
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
345
- { "startIndex": 28, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'user_env'
346
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
347
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '3'
348
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
349
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
350
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '5'
351
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
352
- { "startIndex": 42, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '-1'
353
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
354
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
355
- { "startIndex": 46, "endIndex": 55, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'character'
356
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
357
- { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
358
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
359
- ],
360
- [
361
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
362
- { "startIndex": 8, "endIndex": 15, "scopes": ["source.abl", "keyword.other.abl"] }, // 'CONVERT'
363
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
364
- { "startIndex": 16, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'SOURCE'
365
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
366
- { "startIndex": 23, "endIndex": 30, "scopes": ["source.abl", "variable.language.abl"] }, // 'SESSION'
367
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
368
- { "startIndex": 31, "endIndex": 38, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'CHARSET'
369
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl"] }, // ' '
370
- { "startIndex": 39, "endIndex": 45, "scopes": ["source.abl", "keyword.other.abl"] }, // 'TARGET'
371
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
372
- { "startIndex": 46, "endIndex": 54, "scopes": ["source.abl", "variable.other.abl"] }, // 'user_env'
373
- { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
374
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '5'
375
- { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
376
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
377
- ]
378
- ];
379
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
380
- })
381
-
382
- describe('', () => {
383
- let statement =
384
- `input STREAM dump from VALUE(fil) LOB-DIR VALUE(lobdir) NO-ECHO
385
- MAP VALUE(SUBSTRING(user_env[3],5,-1,"character"))
386
- CONVERT SOURCE user_env[4] TARGET user_env[5].`;
387
-
388
- let expectedTokens = [
389
- [
390
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'input'
391
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
392
- { "startIndex": 6, "endIndex": 12, "scopes": ["source.abl", "keyword.other.abl"] }, // 'STREAM'
393
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
394
- { "startIndex": 13, "endIndex": 17, "scopes": ["source.abl", "variable.other.abl"] }, // 'dump'
395
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
396
- { "startIndex": 18, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
397
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
398
- { "startIndex": 23, "endIndex": 28, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
399
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
400
- { "startIndex": 29, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'fil'
401
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
402
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
403
- { "startIndex": 34, "endIndex": 41, "scopes": ["source.abl", "keyword.other.abl"] }, // 'LOB-DIR'
404
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl"] }, // ' '
405
- { "startIndex": 42, "endIndex": 47, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
406
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
407
- { "startIndex": 48, "endIndex": 54, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'lobdir'
408
- { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
409
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl"] }, // ' '
410
- { "startIndex": 56, "endIndex": 63, "scopes": ["source.abl", "keyword.other.abl"] } // 'NO-ECHO'
411
- ],
412
- [
413
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
414
- { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'MAP'
415
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
416
- { "startIndex": 12, "endIndex": 17, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
417
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
418
- { "startIndex": 18, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'SUBSTRING'
419
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
420
- { "startIndex": 28, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'user_env'
421
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
422
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '3'
423
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
424
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
425
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '5'
426
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
427
- { "startIndex": 42, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '-1'
428
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
429
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
430
- { "startIndex": 46, "endIndex": 55, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'character'
431
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
432
- { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
433
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
434
- ],
435
- [
436
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
437
- { "startIndex": 8, "endIndex": 15, "scopes": ["source.abl", "keyword.other.abl"] }, // 'CONVERT'
438
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
439
- { "startIndex": 16, "endIndex": 22, "scopes": ["source.abl", "keyword.other.abl"] }, // 'SOURCE'
440
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
441
- { "startIndex": 23, "endIndex": 31, "scopes": ["source.abl", "variable.other.abl"] }, // 'user_env'
442
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
443
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '4'
444
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
445
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl"] }, // ' '
446
- { "startIndex": 35, "endIndex": 41, "scopes": ["source.abl", "keyword.other.abl"] }, // 'TARGET'
447
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl"] }, // ' '
448
- { "startIndex": 42, "endIndex": 50, "scopes": ["source.abl", "variable.other.abl"] }, // 'user_env'
449
- { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
450
- { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '5'
451
- { "startIndex": 52, "endIndex": 53, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
452
- { "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
453
- ]
454
- ];
455
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
456
- })
457
-
458
- describe('', () => {
459
- let statement =
460
- `INPUT FROM OS-DIR(CurDir) ECHO.`;
461
-
462
- let expectedTokens = [
463
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'INPUT'
464
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
465
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'FROM'
466
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
467
- { "startIndex": 11, "endIndex": 17, "scopes": ["source.abl", "support.function.abl"] }, // 'OS-DIR'
468
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
469
- { "startIndex": 18, "endIndex": 24, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'CurDir'
470
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
471
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
472
- { "startIndex": 26, "endIndex": 30, "scopes": ["source.abl", "keyword.other.abl"] }, // 'ECHO'
473
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
474
- ];
475
-
476
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
477
- })
478
-
479
- describe('', () => {
480
- let statement =
481
- `INPUT FROM VALUE (s_logfile) NO-ECHO {&NO-MAP}.`;
482
-
483
- let expectedTokens = [
484
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'INPUT'
485
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
486
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'FROM'
487
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
488
- { "startIndex": 11, "endIndex": 16, "scopes": ["source.abl", "support.function.abl"] }, // 'VALUE'
489
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
490
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
491
- { "startIndex": 18, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 's_logfile'
492
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
493
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl"] }, // ' '
494
- { "startIndex": 29, "endIndex": 36, "scopes": ["source.abl", "keyword.other.abl"] }, // 'NO-ECHO'
495
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl"] }, // ' '
496
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '{'
497
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
498
- { "startIndex": 39, "endIndex": 45, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'NO-MAP'
499
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '}'
500
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
501
- ];
502
-
503
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
504
- })