abl-tmlanguage 1.3.26 → 1.3.28

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 (63) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +2 -1
  3. package/abl.tmLanguage.json +291 -112
  4. package/index.mjs +109 -11
  5. package/package.json +1 -1
  6. package/spec/blocks/block-options.spec.js +16 -16
  7. package/spec/blocks/finally-blocks.spec.js +5 -5
  8. package/spec/comments/comment-in-block-statement.spec.js +1 -1
  9. package/spec/comments/comment-in-for-each.spec.js +5 -5
  10. package/spec/comments/vscode-abl-issue#127.spec.js +20 -20
  11. package/spec/db-table-and-field/buffer-copy.spec.js +22 -22
  12. package/spec/db-table-and-field/create-alias.spec.js +39 -38
  13. package/spec/db-table-and-field/double-colon-access.spec.js +154 -0
  14. package/spec/db-table-and-field/field-in-function.spec.js +25 -25
  15. package/spec/db-table-and-field/fields-except.spec.js +1 -2
  16. package/spec/db-table-and-field/foreach.spec.js +6 -6
  17. package/spec/db-table-and-field/issue#88.spec.js +5 -4
  18. package/spec/db-table-and-field/new-record.spec.js +9 -9
  19. package/spec/db-table-and-field/query-get.spec.js +137 -0
  20. package/spec/define-buffer/create-buffer.spec.js +57 -0
  21. package/spec/define-frame/issue#173.spec.js +16 -16
  22. package/spec/define-property/property-getter.spec.js +8 -103
  23. package/spec/define-variable/simple-single-line.spec.js +1 -1
  24. package/spec/define-variable/var-statement.spec.js +21 -21
  25. package/spec/do/do-blocks.spec.js +22 -22
  26. package/spec/do/stop-after.spec.js +1 -1
  27. package/spec/function-call/can-find.spec.js +12 -12
  28. package/spec/function-call/include-in-argument.spec.js +120 -0
  29. package/spec/function-call/misc-abl-functions.spec.js +9 -9
  30. package/spec/function-call/nested-functions.spec.js +124 -124
  31. package/spec/function-call/vscode-abl-issue#19.spec.js +14 -14
  32. package/spec/function-definition/vscode-abl-issue#166.spec.js +1 -1
  33. package/spec/input-output/input-from.spec.js +116 -116
  34. package/spec/input-output/output-to.spec.js +105 -105
  35. package/spec/method-attribute-property-call/get-set-method-name.spec.js +1 -2
  36. package/spec/method-attribute-property-call/method-call.spec.js +1 -1
  37. package/spec/method-attribute-property-call/nested-property-call.spec.js +8 -25
  38. package/spec/method-attribute-property-call/unqualified-method-call.spec.js +27 -27
  39. package/spec/method-definition/constructor.spec.js +5 -5
  40. package/spec/misc-statements/class-in-var-name.spec.js +22 -22
  41. package/spec/misc-statements/copy-lob.spec.js +11 -4
  42. package/spec/misc-statements/do-in-name.spec.js +5 -5
  43. package/spec/misc-statements/guid.spec.js +10 -10
  44. package/spec/misc-statements/if-then.spec.js +38 -38
  45. package/spec/misc-statements/record-buffer-functions.spec.js +5 -5
  46. package/spec/misc-statements/return-statement.spec.js +15 -15
  47. package/spec/misc-statements/skip-statement-and-fuction.spec.js +6 -6
  48. package/spec/misc-statements/system-handles.spec.js +17 -3
  49. package/spec/numbers/scientific-notation.spec.js +7 -7
  50. package/spec/operators/operators.spec.js +6 -6
  51. package/spec/preprocesors/proparse-preprocessor.spec.js +7 -7
  52. package/spec/run-statement/run-statement.spec.js +30 -133
  53. package/spec/strings/translation-attribute.spec.js +7 -7
  54. package/spec/strings/vscode-abl-issue#11.spec.js +0 -53
  55. package/spec/strings/vscode-abl-issue#28.spec.js +16 -16
  56. package/spec/type-name/argument.spec.js +6 -7
  57. package/spec/type-name/define-property.spec.js +1 -1
  58. package/spec/type-name/define-temp-table.spec.js +4 -4
  59. package/spec/type-name/define-variable-property.spec.js +1 -1
  60. package/spec/type-name/define-variable.spec.js +1 -1
  61. package/spec/type-name/new.spec.js +8 -8
  62. package/spec/type-name/parameter-as.spec.js +50 -1
  63. package/spec/type-name/type-name.spec.js +20 -20
@@ -31,11 +31,11 @@ END.`;
31
31
  { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.block.abl", "constant.numeric.source.abl"] }, // '1'
32
32
  { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
33
33
  { "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'to'
34
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.block.abl", "meta.function-call.abl"] }, // ' '
35
- { "startIndex": 15, "endIndex": 26, "scopes": ["source.abl", "meta.block.abl", "meta.function-call.abl", "support.function.abl"] }, // 'NUM-ENTRIES'
36
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.block.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
37
- { "startIndex": 27, "endIndex": 42, "scopes": ["source.abl", "meta.block.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mc-g-list-class'
38
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.block.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
34
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
35
+ { "startIndex": 15, "endIndex": 26, "scopes": ["source.abl", "meta.block.abl", "support.function.abl"] }, // 'NUM-ENTRIES'
36
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
37
+ { "startIndex": 27, "endIndex": 42, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mc-g-list-class'
38
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.block.abl", "meta.brace.round.js"] }, // ')'
39
39
  { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
40
40
  ],
41
41
  [
@@ -71,13 +71,13 @@ END.`;
71
71
  { "startIndex": 11, "endIndex": 27, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'hist-trn.fund-no'
72
72
  { "startIndex": 27, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
73
73
  { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
74
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
75
- { "startIndex": 33, "endIndex": 38, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'ENTRY'
76
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
77
- { "startIndex": 39, "endIndex": 43, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mi-i'
78
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
79
- { "startIndex": 44, "endIndex": 59, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mc-g-list-class'
80
- { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] } // ')'
74
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl"] }, // ' '
75
+ { "startIndex": 33, "endIndex": 38, "scopes": ["source.abl", "support.function.abl"] }, // 'ENTRY'
76
+ { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
77
+ { "startIndex": 39, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mi-i'
78
+ { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
79
+ { "startIndex": 44, "endIndex": 59, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mc-g-list-class'
80
+ { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
81
81
  ],
82
82
  [
83
83
  { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
@@ -168,16 +168,16 @@ END.`;
168
168
  [
169
169
  { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
170
170
  { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
171
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
172
- { "startIndex": 9, "endIndex": 15, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'LOOKUP'
173
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
174
- { "startIndex": 16, "endIndex": 33, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'hist-trn.h-status'
175
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
176
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
177
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
178
- { "startIndex": 36, "endIndex": 41, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'P,W,C'
179
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
180
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
171
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
172
+ { "startIndex": 9, "endIndex": 15, "scopes": ["source.abl", "support.function.abl"] }, // 'LOOKUP'
173
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
174
+ { "startIndex": 16, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'hist-trn.h-status'
175
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
176
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
177
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
178
+ { "startIndex": 36, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'P,W,C'
179
+ { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
180
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
181
181
  { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl"] }, // ' '
182
182
  { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
183
183
  { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
@@ -23,13 +23,16 @@ no-error.`;
23
23
  { "startIndex": 2, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'starting'
24
24
  { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
25
25
  { "startIndex": 11, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'at'
26
- { "startIndex": 13, "endIndex": 16, "scopes": ["source.abl"] }, // ' ( '
26
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
27
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
28
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
27
29
  { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "variable.other.abl"] }, // 'i'
28
30
  { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
29
31
  { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '+'
30
32
  { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
31
33
  { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '4'
32
- { "startIndex": 21, "endIndex": 24, "scopes": ["source.abl"] } // ' )'
34
+ { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
35
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
33
36
  ],
34
37
  [
35
38
  { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
@@ -69,13 +72,17 @@ describe('', () => {
69
72
  { "startIndex": 22, "endIndex": 30, "scopes": ["source.abl", "keyword.other.abl"] }, // 'starting'
70
73
  { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
71
74
  { "startIndex": 31, "endIndex": 33, "scopes": ["source.abl", "keyword.other.abl"] }, // 'at'
72
- { "startIndex": 33, "endIndex": 36, "scopes": ["source.abl"] }, // ' ( '
75
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
76
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
77
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl"] }, // ' '
73
78
  { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "variable.other.abl"] }, // 'i'
74
79
  { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl"] }, // ' '
75
80
  { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '+'
76
81
  { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl"] }, // ' '
77
82
  { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '4'
78
- { "startIndex": 41, "endIndex": 44, "scopes": ["source.abl"] }, // ' ) '
83
+ { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl"] }, // ' '
84
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
85
+ { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl"] }, // ' '
79
86
  { "startIndex": 44, "endIndex": 47, "scopes": ["source.abl", "keyword.other.abl"] }, // 'for'
80
87
  { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl"] }, // ' '
81
88
  { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "variable.other.abl"] }, // 'x'
@@ -231,11 +231,11 @@ END CASE. `;
231
231
  { "startIndex": 24, "endIndex": 31, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'produit'
232
232
  { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
233
233
  { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.operator.source.abl"] }, // '+'
234
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl"] }, // ' '
235
- { "startIndex": 34, "endIndex": 40, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'string'
236
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
237
- { "startIndex": 41, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '0x3'
238
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
234
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
235
+ { "startIndex": 34, "endIndex": 40, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'string'
236
+ { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
237
+ { "startIndex": 41, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '0x3'
238
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
239
239
  { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
240
240
  { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
241
241
  ],
@@ -20,11 +20,11 @@ describe('', () => {
20
20
  { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "variable.other.abl"] }, // 'pwr'
21
21
  { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
22
22
  { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
23
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
24
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'guid'
25
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
26
- { "startIndex": 11, "endIndex": 24, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'generate-uuid'
27
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
23
+ { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
24
+ { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "support.function.abl"] }, // 'guid'
25
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
26
+ { "startIndex": 11, "endIndex": 24, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'generate-uuid'
27
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
28
28
  { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
29
29
  ];
30
30
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
@@ -85,11 +85,11 @@ ASSIGN
85
85
  { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "variable.other.abl"] }, // 'vGUID'
86
86
  { "startIndex": 7, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
87
87
  { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
88
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
89
- { "startIndex": 11, "endIndex": 15, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'GUID'
90
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
91
- { "startIndex": 16, "endIndex": 22, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'MyUUID'
92
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
88
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
89
+ { "startIndex": 11, "endIndex": 15, "scopes": ["source.abl", "support.function.abl"] }, // 'GUID'
90
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
91
+ { "startIndex": 16, "endIndex": 22, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'MyUUID'
92
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
93
93
  { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
94
94
  ]
95
95
  ];
@@ -96,20 +96,20 @@ describe('', () => {
96
96
  { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
97
97
  { "startIndex": 17, "endIndex": 22, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Error'
98
98
  { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
99
- { "startIndex": 23, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'substitute'
100
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
101
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
102
- { "startIndex": 35, "endIndex": 69, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.single.abl"] }, // 'Unable to create HTTP tunnel to &1'
103
- { "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
104
- { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
105
- { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
106
- { "startIndex": 72, "endIndex": 83, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'baseRequest'
107
- { "startIndex": 83, "endIndex": 84, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
108
- { "startIndex": 84, "endIndex": 87, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'URI'
109
- { "startIndex": 87, "endIndex": 88, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
110
- { "startIndex": 88, "endIndex": 96, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'ToString'
111
- { "startIndex": 96, "endIndex": 97, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
112
- { "startIndex": 97, "endIndex": 98, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
99
+ { "startIndex": 23, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'substitute'
100
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
101
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
102
+ { "startIndex": 35, "endIndex": 69, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.single.abl"] }, // 'Unable to create HTTP tunnel to &1'
103
+ { "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
104
+ { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
105
+ { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl"] }, // ' '
106
+ { "startIndex": 72, "endIndex": 83, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'baseRequest'
107
+ { "startIndex": 83, "endIndex": 84, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
108
+ { "startIndex": 84, "endIndex": 87, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'URI'
109
+ { "startIndex": 87, "endIndex": 88, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
110
+ { "startIndex": 88, "endIndex": 96, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'ToString'
111
+ { "startIndex": 96, "endIndex": 97, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
112
+ { "startIndex": 97, "endIndex": 98, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
113
113
  { "startIndex": 98, "endIndex": 99, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
114
114
  { "startIndex": 99, "endIndex": 100, "scopes": ["source.abl", "punctuation.separator.comma.abl"] } // ','
115
115
  ],
@@ -149,11 +149,11 @@ describe('', () => {
149
149
  let statement = `if string(1) = "1" then .`;
150
150
  let expectedTokens = [
151
151
  { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
152
- { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
153
- { "startIndex": 3, "endIndex": 9, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'string'
154
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
155
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '1'
156
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
152
+ { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
153
+ { "startIndex": 3, "endIndex": 9, "scopes": ["source.abl", "support.function.abl"] }, // 'string'
154
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
155
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '1'
156
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
157
157
  { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl"] }, // ' '
158
158
  { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
159
159
  { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
@@ -187,11 +187,11 @@ describe('', () => {
187
187
  { "startIndex": 42, "endIndex": 45, "scopes": ["source.abl", "keyword.other.abl"] } // 'and'
188
188
  ],
189
189
  [
190
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
191
- { "startIndex": 2, "endIndex": 14, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'valid-handlE'
192
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
193
- { "startIndex": 15, "endIndex": 23, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'hDataset'
194
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
190
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
191
+ { "startIndex": 2, "endIndex": 14, "scopes": ["source.abl", "support.function.abl"] }, // 'valid-handlE'
192
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
193
+ { "startIndex": 15, "endIndex": 23, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'hDataset'
194
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
195
195
  { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
196
196
  { "startIndex": 25, "endIndex": 29, "scopes": ["source.abl", "keyword.other.abl"] } // 'then'
197
197
  ],
@@ -233,13 +233,13 @@ describe('', () => {
233
233
  { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
234
234
  { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
235
235
  { "startIndex": 22, "endIndex": 24, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
236
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
237
- { "startIndex": 25, "endIndex": 37, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'VALID-HANDLE'
238
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
239
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
240
- { "startIndex": 39, "endIndex": 47, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'p_Window'
241
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
242
- { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
236
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
237
+ { "startIndex": 25, "endIndex": 37, "scopes": ["source.abl", "support.function.abl"] }, // 'VALID-HANDLE'
238
+ { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
239
+ { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
240
+ { "startIndex": 39, "endIndex": 47, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'p_Window'
241
+ { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
242
+ { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
243
243
  { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl"] }, // ' '
244
244
  { "startIndex": 50, "endIndex": 54, "scopes": ["source.abl", "keyword.other.abl"] } // 'THEN'
245
245
  ],
@@ -252,13 +252,13 @@ describe('', () => {
252
252
  { "startIndex": 22, "endIndex": 26, "scopes": ["source.abl", "keyword.other.abl"] }, // 'ELSE'
253
253
  { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl"] }, // ' '
254
254
  { "startIndex": 27, "endIndex": 29, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
255
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
256
- { "startIndex": 30, "endIndex": 42, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'VALID-HANDLE'
257
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
258
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
259
- { "startIndex": 44, "endIndex": 58, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'CURRENT-WINDOW'
260
- { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
261
- { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
255
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl"] }, // ' '
256
+ { "startIndex": 30, "endIndex": 42, "scopes": ["source.abl", "support.function.abl"] }, // 'VALID-HANDLE'
257
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
258
+ { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
259
+ { "startIndex": 44, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'CURRENT-WINDOW'
260
+ { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
261
+ { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
262
262
  { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl"] }, // ' '
263
263
  { "startIndex": 61, "endIndex": 65, "scopes": ["source.abl", "keyword.other.abl"] } // 'THEN'
264
264
  ],
@@ -59,11 +59,11 @@ describe('', () => {
59
59
  { "startIndex": 3, "endIndex": 7, "scopes": ["source.abl", "keyword.other.abl"] }, // 'else'
60
60
  { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
61
61
  { "startIndex": 8, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
62
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
63
- { "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'ambiguous'
64
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
65
- { "startIndex": 21, "endIndex": 34, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 's2k.bCustomer'
66
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
62
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
63
+ { "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "support.function.abl"] }, // 'ambiguous'
64
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
65
+ { "startIndex": 21, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 's2k.bCustomer'
66
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
67
67
  { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl"] }, // ' '
68
68
  { "startIndex": 36, "endIndex": 40, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
69
69
  { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
@@ -4,10 +4,10 @@ const shared = require('../shared.js');
4
4
  describe('', () => {
5
5
  let statement = `return(true).`;
6
6
  let expectedTokens = [
7
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'return'
8
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
9
- { "startIndex": 7, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "constant.language.abl"] }, // 'true'
10
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
7
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "support.function.abl"] }, // 'return'
8
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
9
+ { "startIndex": 7, "endIndex": 11, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.language.abl"] }, // 'true'
10
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
11
11
  { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
12
12
  ];
13
13
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
@@ -16,13 +16,13 @@ describe('', () => {
16
16
  describe('', () => {
17
17
  let statement = `return(string(1)).`;
18
18
  let expectedTokens = [
19
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'return'
20
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
21
- { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'string'
22
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
23
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '1'
24
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
25
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
19
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "support.function.abl"] }, // 'return'
20
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
21
+ { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'string'
22
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
23
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '1'
24
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
25
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
26
26
  { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
27
27
  ];
28
28
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
@@ -31,7 +31,7 @@ describe('', () => {
31
31
  describe('', () => {
32
32
  let statement = `RETURN iValue.`;
33
33
  let expectedTokens = [
34
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'RETURN'
34
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "support.function.abl"] }, // 'RETURN'
35
35
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
36
36
  { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "variable.other.abl"] }, // 'iValue'
37
37
  { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
@@ -42,7 +42,7 @@ describe('', () => {
42
42
  describe('', () => {
43
43
  let statement = `RETURN session:exit-code.`;
44
44
  let expectedTokens = [
45
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'RETURN'
45
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "support.function.abl"] }, // 'RETURN'
46
46
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
47
47
  { "startIndex": 7, "endIndex": 14, "scopes": ["source.abl", "variable.language.abl"] }, // 'session'
48
48
  { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
@@ -55,9 +55,9 @@ describe('', () => {
55
55
  describe('', () => {
56
56
  let statement = `RETURN return-VALUE.`;
57
57
  let expectedTokens = [
58
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'RETURN'
58
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "support.function.abl"] }, // 'RETURN'
59
59
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
60
- { "startIndex": 7, "endIndex": 19, "scopes": ["source.abl", "keyword.other.abl"] }, // 'return-VALUE'
60
+ { "startIndex": 7, "endIndex": 19, "scopes": ["source.abl", "support.function.abl"] }, // 'return-VALUE'
61
61
  { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
62
62
  ];
63
63
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
@@ -20,14 +20,14 @@ describe('', () => {
20
20
  ],
21
21
  [
22
22
  { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
23
- { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] } // 'skip'
23
+ { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "support.function.abl"] } // 'skip'
24
24
  ],
25
25
  [
26
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
27
- { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'skip'
28
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
29
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '3'
30
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
26
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
27
+ { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "support.function.abl"] }, // 'skip'
28
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
29
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '3'
30
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
31
31
  { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
32
32
  ]
33
33
  ];
@@ -67,9 +67,9 @@ describe('', () => {
67
67
  describe('', () => {
68
68
  let statement = `this-object().`;
69
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"] }, // ')'
70
+ { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "support.function.abl"] }, // 'this-object'
71
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
72
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
73
73
  { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
74
74
  ];
75
75
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
@@ -106,3 +106,17 @@ describe('', () => {
106
106
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
107
107
  })
108
108
 
109
+ describe('', () => {
110
+ let statement = `TRANSaction:set-ROLLBACK ( ).`;
111
+ let expectedTokens = [
112
+ { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.language.abl"] }, // 'TRANSaction'
113
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
114
+ { "startIndex": 12, "endIndex": 24, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'set-ROLLBACK'
115
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
116
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
117
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
118
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
119
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'\
120
+ ];
121
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
122
+ })
@@ -117,13 +117,13 @@ Avogadro = decimal("6.02214076e+23").`;
117
117
  { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "variable.other.abl"] }, // 'Avogadro'
118
118
  { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
119
119
  { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
120
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
121
- { "startIndex": 11, "endIndex": 18, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'decimal'
122
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
123
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
124
- { "startIndex": 20, "endIndex": 34, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // '6.02214076e+23'
125
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
126
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
120
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
121
+ { "startIndex": 11, "endIndex": 18, "scopes": ["source.abl", "support.function.abl"] }, // 'decimal'
122
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
123
+ { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
124
+ { "startIndex": 20, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // '6.02214076e+23'
125
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
126
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
127
127
  { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
128
128
  ]
129
129
  ];
@@ -25,7 +25,7 @@ describe('', () => {
25
25
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
26
26
  { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
27
27
  { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
28
- { "startIndex": 9, "endIndex": 14, "scopes": ["source.abl", "constant.language.abl"] }, // 'today'
28
+ { "startIndex": 9, "endIndex": 14, "scopes": ["source.abl", "support.function.abl"] }, // 'today'
29
29
  { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
30
30
  { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '*'
31
31
  { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
@@ -98,11 +98,11 @@ else if Not v_string matches "bar" then .`;
98
98
  { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'else'
99
99
  { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
100
100
  { "startIndex": 5, "endIndex": 7, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
101
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
102
- { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'NOT'
103
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
104
- { "startIndex": 12, "endIndex": 23, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'v_condition'
105
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
101
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
102
+ { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NOT'
103
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
104
+ { "startIndex": 12, "endIndex": 23, "scopes": ["source.abl", "variable.other.abl"] }, // 'v_condition'
105
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
106
106
  { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
107
107
  { "startIndex": 25, "endIndex": 29, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
108
108
  { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl"] }, // ' '
@@ -20,13 +20,13 @@ assign attrValue = BuildAttributeValue(string(attribNames[attribLoop]), annoData
20
20
  { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
21
21
  { "startIndex": 19, "endIndex": 38, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'BuildAttributeValue'
22
22
  { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
23
- { "startIndex": 39, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'string'
24
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
25
- { "startIndex": 46, "endIndex": 57, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'attribNames'
26
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
27
- { "startIndex": 58, "endIndex": 68, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "variable.other.abl"] }, // 'attribLoop'
28
- { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
29
- { "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
23
+ { "startIndex": 39, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'string'
24
+ { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
25
+ { "startIndex": 46, "endIndex": 57, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'attribNames'
26
+ { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
27
+ { "startIndex": 58, "endIndex": 68, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "variable.other.abl"] }, // 'attribLoop'
28
+ { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
29
+ { "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
30
30
  { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
31
31
  { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
32
32
  { "startIndex": 72, "endIndex": 80, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'annoData'