abl-tmlanguage 1.3.15 → 1.3.18

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 (92) hide show
  1. package/.github/workflows/ci.yml +36 -0
  2. package/CHANGELOG.md +18 -0
  3. package/README.md +17 -12
  4. package/abl.tmLanguage.json +280 -69
  5. package/package.json +1 -1
  6. package/spec/annotations/annotation.spec.js +49 -50
  7. package/spec/blocks/block-labels.spec.js +3 -3
  8. package/spec/blocks/block-options.spec.js +157 -1
  9. package/spec/comments/comment-in-block-statement.spec.js +20 -14
  10. package/spec/comments/comment-in-for-each.spec.js +9 -6
  11. package/spec/comments/comment-in-function-args.spec.js +4 -5
  12. package/spec/comments/vscode-abl-issue#127.spec.js +4 -4
  13. package/spec/create-widgets/create-window.spec.js +11 -8
  14. package/spec/db-table-and-field/buffer-copy.spec.js +45 -39
  15. package/spec/db-table-and-field/create-alias.spec.js +3 -3
  16. package/spec/db-table-and-field/field-in-function.spec.js +6 -6
  17. package/spec/db-table-and-field/foreach.spec.js +3 -3
  18. package/spec/db-table-and-field/issue#88.spec.js +2 -2
  19. package/spec/db-table-and-field/new-record.spec.js +46 -25
  20. package/spec/define/define-browse.spec.js +54 -54
  21. package/spec/define/define-button.spec.js +3 -3
  22. package/spec/define/define-query.spec.js +43 -0
  23. package/spec/define-buffer/create-buffer.spec.js +3 -3
  24. package/spec/define-buffer/simple-single-line.spec.js +9 -9
  25. package/spec/define-frame/issue#173.spec.js +56 -50
  26. package/spec/define-parameter/simple-single-line.spec.js +3 -3
  27. package/spec/define-property/property-getter.spec.js +4 -4
  28. package/spec/define-temp-table/define-dataset.spec.js +23 -17
  29. package/spec/define-temp-table/define-temp-table.spec.js +68 -53
  30. package/spec/define-variable/extent.spec.js +6 -6
  31. package/spec/define-variable/initial.spec.js +15 -15
  32. package/spec/define-variable/issue#6.spec.js +39 -39
  33. package/spec/define-variable/issue#9.spec.js +3 -3
  34. package/spec/define-variable/var-statement.spec.js +7 -4
  35. package/spec/do/do-blocks.spec.js +25 -19
  36. package/spec/for-each/issue#321.spec.js +2 -2
  37. package/spec/function-call/can-find.spec.js +10 -11
  38. package/spec/function-call/misc-abl-functions.spec.js +3 -3
  39. package/spec/function-call/nested-functions.spec.js +21 -22
  40. package/spec/function-call/udf-calls.spec.js +22 -23
  41. package/spec/function-call/vscode-abl-issue#19.spec.js +12 -12
  42. package/spec/global-scoped-define/global-define.spec.js +54 -7
  43. package/spec/global-scoped-define/scoped-define-with-procedure-keyword.spec.js +49 -15
  44. package/spec/global-scoped-define/undefine.spec.js +44 -0
  45. package/spec/include/abl-tmlanguage-issues#5.spec.js +3 -3
  46. package/spec/include/include-file-name.spec.js +16 -4
  47. package/spec/include/unnamed-arguments.spec.js +4 -5
  48. package/spec/include/vscode-abl-issue#45.spec.js +3 -3
  49. package/spec/include/vscode-abl-issue#77.spec.js +16 -17
  50. package/spec/include/vscode-abl-issue#80.spec.js +10 -7
  51. package/spec/input-output/input-from.spec.js +19 -16
  52. package/spec/input-output/output-to.spec.js +15 -15
  53. package/spec/method-attribute-property-call/abl-method-attribute-call.spec.js +16 -17
  54. package/spec/method-attribute-property-call/connected-method.spec.js +3 -4
  55. package/spec/method-attribute-property-call/datset-table-attribute-method-call.spec.js +53 -0
  56. package/spec/method-attribute-property-call/method-call.spec.js +16 -16
  57. package/spec/method-attribute-property-call/unqualified-method-call.spec.js +3 -4
  58. package/spec/method-definition/constructor.spec.js +6 -6
  59. package/spec/method-definition/method.spec.js +12 -12
  60. package/spec/misc-statements/case-statement.spec.js +9 -9
  61. package/spec/misc-statements/class-in-var-name.spec.js +9 -10
  62. package/spec/misc-statements/copy-lob.spec.js +3 -3
  63. package/spec/misc-statements/do-in-name.spec.js +21 -22
  64. package/spec/misc-statements/event-subscribe.spec.js +14 -15
  65. package/spec/misc-statements/export-delimiter.spec.js +6 -6
  66. package/spec/misc-statements/if-then.spec.js +9 -9
  67. package/spec/misc-statements/issue#173.spec.js +3 -4
  68. package/spec/misc-statements/message-statement.spec.js +3 -3
  69. package/spec/misc-statements/record-buffer-functions.spec.js +3 -3
  70. package/spec/misc-statements/release.spec.js +3 -4
  71. package/spec/misc-statements/skip-statement-and-fuction.spec.js +3 -4
  72. package/spec/numbers/scientific-notation.spec.js +212 -0
  73. package/spec/operators/operators.spec.js +10 -10
  74. package/spec/preprocesors/issue166.spec.js +27 -19
  75. package/spec/preprocesors/preprocessor-functions.spec.js +77 -0
  76. package/spec/preprocesors/proparse-preprocessor.spec.js +27 -3
  77. package/spec/procedure-definition/trigger-procedure.spec.js +8 -2
  78. package/spec/procedure-definition/vscode-abl-issue#22.spec.js +3 -3
  79. package/spec/procedure-definition/vscode-abl-issue#26.spec.js +4 -4
  80. package/spec/procedure-definition/vscode-abl-issue#325.spec.js +26 -2
  81. package/spec/procedure-definition/vscode-abl-issue#62.spec.js +7 -4
  82. package/spec/run-statement/run-statement.spec.js +25 -13
  83. package/spec/shared.js +12 -11
  84. package/spec/strings/translation-attribute.spec.js +4 -4
  85. package/spec/strings/vscode-abl-issue#11.spec.js +24 -24
  86. package/spec/strings/vscode-abl-issue#28.spec.js +9 -9
  87. package/spec/type-name/argument.spec.js +11 -12
  88. package/spec/type-name/cast.spec.js +7 -7
  89. package/spec/type-name/define-temp-table.spec.js +6 -6
  90. package/spec/type-name/new.spec.js +3 -3
  91. package/spec/type-name/parameter-as.spec.js +6 -6
  92. package/spec/type-name/type-name.spec.js +22 -20
@@ -225,9 +225,9 @@ describe('', () => {
225
225
  { "startIndex": 64, "endIndex": 66, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '12'
226
226
  { "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
227
227
  { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
228
- { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
229
- { "startIndex": 69, "endIndex": 81, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.single.complex.abl"] }, // 'milliseconds'
230
- { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
228
+ { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
229
+ { "startIndex": 69, "endIndex": 81, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.single.abl"] }, // 'milliseconds'
230
+ { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
231
231
  { "startIndex": 82, "endIndex": 83, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
232
232
  { "startIndex": 83, "endIndex": 84, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
233
233
  ]
@@ -249,7 +249,10 @@ describe('', () => {
249
249
  { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl"] }, // ' '
250
250
  { "startIndex": 37, "endIndex": 45, "scopes": ["source.abl", "storage.type.abl"] }, // 'datetime'
251
251
  { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
252
- { "startIndex": 46, "endIndex": 57, "scopes": ["source.abl", "meta.array.literal.abl", "storage.type.function.abl"] }, // '{&MAX-SIZE}'
252
+ { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.array.literal.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '{'
253
+ { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.array.literal.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
254
+ { "startIndex": 48, "endIndex": 56, "scopes": ["source.abl", "meta.array.literal.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'MAX-SIZE'
255
+ { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.array.literal.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '}'
253
256
  { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
254
257
  { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl"] }, // ' '
255
258
  { "startIndex": 59, "endIndex": 63, "scopes": ["source.abl", "variable.other.abl"] }, // 'dtz1'
@@ -59,10 +59,10 @@ END.`;
59
59
  { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
60
60
  { "startIndex": 19, "endIndex": 25, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // 'begins'
61
61
  { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
62
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
63
- { "startIndex": 27, "endIndex": 29, "scopes": ["source.abl", "string.double.complex.abl", "constant.character.escape.abl"] }, // '~{'
64
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
65
- { "startIndex": 30, "endIndex": 32, "scopes": ["source.abl", "string.double.complex.abl", "support.other.abl"] }, // ':U'
62
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
63
+ { "startIndex": 27, "endIndex": 29, "scopes": ["source.abl", "string.quoted.double.abl", "constant.character.escape.abl"] }, // '~{'
64
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
65
+ { "startIndex": 30, "endIndex": 32, "scopes": ["source.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
66
66
  { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl"] }, // ' '
67
67
  { "startIndex": 33, "endIndex": 37, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
68
68
  { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
@@ -108,18 +108,20 @@ end.`;
108
108
  [
109
109
  { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'do'
110
110
  { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
111
- { "startIndex": 3, "endIndex": 6, "scopes": ["source.abl", "meta.block.abl", "storage.type.function.abl"] }, // '&if'
111
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.block.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
112
+ { "startIndex": 4, "endIndex": 6, "scopes": ["source.abl", "meta.block.abl", "keyword.control.directive.conditional.abl"] }, // 'if'
112
113
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
113
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.block.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
114
- { "startIndex": 8, "endIndex": 21, "scopes": ["source.abl", "meta.block.abl", "string.double.complex.abl"] }, // '{&CATCH-STOP}'
115
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.block.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
114
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.block.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
115
+ { "startIndex": 8, "endIndex": 21, "scopes": ["source.abl", "meta.block.abl", "string.quoted.double.abl"] }, // '{&CATCH-STOP}'
116
+ { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.block.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
116
117
  { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
117
118
  { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "meta.block.abl", "keyword.operator.source.abl"] }, // 'eq'
118
119
  { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
119
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.block.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
120
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.block.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
120
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.block.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
121
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.block.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
121
122
  { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
122
- { "startIndex": 29, "endIndex": 34, "scopes": ["source.abl", "meta.block.abl", "storage.type.function.abl"] }, // '&then'
123
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.block.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
124
+ { "startIndex": 30, "endIndex": 34, "scopes": ["source.abl", "meta.block.abl", "keyword.control.directive.conditional.abl"] }, // 'then'
123
125
  { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
124
126
  { "startIndex": 35, "endIndex": 37, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'on'
125
127
  { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
@@ -142,12 +144,15 @@ end.`;
142
144
  { "startIndex": 3, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'substitute'
143
145
  { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
144
146
  { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
145
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
146
- { "startIndex": 16, "endIndex": 70, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // 'A stop condition raised while waiting for the backend.'
147
- { "startIndex": 70, "endIndex": 72, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "constant.character.escape.abl"] }, // '~n'
148
- { "startIndex": 72, "endIndex": 80, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // 'Comp: &1'
149
- { "startIndex": 80, "endIndex": 81, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
150
- { "startIndex": 81, "endIndex": 88, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.type.function.abl"] }, // '{&TRAN}'
147
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
148
+ { "startIndex": 16, "endIndex": 70, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'A stop condition raised while waiting for the backend.'
149
+ { "startIndex": 70, "endIndex": 72, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "constant.character.escape.abl"] }, // '~n'
150
+ { "startIndex": 72, "endIndex": 80, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'Comp: &1'
151
+ { "startIndex": 80, "endIndex": 81, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
152
+ { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '{'
153
+ { "startIndex": 82, "endIndex": 83, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
154
+ { "startIndex": 83, "endIndex": 87, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'TRAN'
155
+ { "startIndex": 87, "endIndex": 88, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '}'
151
156
  { "startIndex": 88, "endIndex": 89, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
152
157
  ],
153
158
  [
@@ -161,7 +166,8 @@ end.`;
161
166
  { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '0'
162
167
  { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.block.abl", "meta.brace.round.js"] }, // ')'
163
168
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
164
- { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl", "storage.type.function.abl"] }, // '&endif'
169
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.block.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
170
+ { "startIndex": 8, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl", "keyword.control.directive.conditional.abl"] }, // 'endif'
165
171
  { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
166
172
  { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
167
173
  ],
@@ -197,7 +203,7 @@ end.`;
197
203
  { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.block.abl", "constant.numeric.source.abl"] }, // '1'
198
204
  { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
199
205
  { "startIndex": 10, "endIndex": 12, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'to'
200
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
206
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.block.abl", "meta.function-call.abl"] }, // ' '
201
207
  { "startIndex": 13, "endIndex": 24, "scopes": ["source.abl", "meta.block.abl", "meta.function-call.abl", "support.function.abl"] }, // 'num-entries'
202
208
  { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.block.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
203
209
  { "startIndex": 25, "endIndex": 30, "scopes": ["source.abl", "meta.block.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'vList'
@@ -67,8 +67,8 @@ ASSIGN InvoiceDetailDocumentCountry = bfAddress.Country.`;
67
67
  { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
68
68
  { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
69
69
  { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
70
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
71
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] } // '"'
70
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
71
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] } // '"'
72
72
  ],
73
73
  [
74
74
  { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'AND'
@@ -117,10 +117,10 @@ describe('', () => {
117
117
  { "startIndex": 45, "endIndex": 58, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'DICTDB._Field'
118
118
  { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
119
119
  { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
120
- { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
121
- { "startIndex": 61, "endIndex": 64, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'y/n'
122
- { "startIndex": 64, "endIndex": 65, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
123
- { "startIndex": 65, "endIndex": 67, "scopes": ["source.abl", "string.double.complex.abl", "support.other.abl"] }, // ':u'
120
+ { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
121
+ { "startIndex": 61, "endIndex": 64, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'y/n'
122
+ { "startIndex": 64, "endIndex": 65, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
123
+ { "startIndex": 65, "endIndex": 67, "scopes": ["source.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':u'
124
124
  { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
125
125
  ];
126
126
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
@@ -156,9 +156,9 @@ describe('', () => {
156
156
  { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
157
157
  { "startIndex": 12, "endIndex": 22, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'department'
158
158
  { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
159
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
160
- { "startIndex": 24, "endIndex": 27, "scopes": ["source.abl", "string.double.complex.abl"] }, // '100'
161
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
159
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
160
+ { "startIndex": 24, "endIndex": 27, "scopes": ["source.abl", "string.quoted.double.abl"] }, // '100'
161
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
162
162
  { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
163
163
  { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl"] }, // ' '
164
164
  { "startIndex": 30, "endIndex": 34, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'then'
@@ -182,9 +182,9 @@ describe('', () => {
182
182
  { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl"] }, // ' '
183
183
  { "startIndex": 50, "endIndex": 52, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // 'eq'
184
184
  { "startIndex": 52, "endIndex": 53, "scopes": ["source.abl"] }, // ' '
185
- { "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
186
- { "startIndex": 54, "endIndex": 57, "scopes": ["source.abl", "string.double.complex.abl"] }, // '100'
187
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
185
+ { "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
186
+ { "startIndex": 54, "endIndex": 57, "scopes": ["source.abl", "string.quoted.double.abl"] }, // '100'
187
+ { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
188
188
  { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl"] }, // ' '
189
189
  { "startIndex": 59, "endIndex": 68, "scopes": ["source.abl", "keyword.other.abl"] }, // 'use-index'
190
190
  { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl"] }, // ' '
@@ -237,4 +237,3 @@ then.`;
237
237
  ];
238
238
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
239
239
  })
240
-
@@ -8,9 +8,9 @@ describe('', () => {
8
8
  { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
9
9
  { "startIndex": 3, "endIndex": 9, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'can-do'
10
10
  { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
11
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
12
- { "startIndex": 11, "endIndex": 15, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // 'data'
13
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
11
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
12
+ { "startIndex": 11, "endIndex": 15, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'data'
13
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
14
14
  { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
15
15
  { "startIndex": 17, "endIndex": 36, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'output-content-type'
16
16
  { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
@@ -29,10 +29,10 @@ describe('', () => {
29
29
  ],
30
30
  [
31
31
  { "startIndex": 0, "endIndex": 17, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
32
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
33
- { "startIndex": 18, "endIndex": 33, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // 'characterValues'
34
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
35
- { "startIndex": 34, "endIndex": 36, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "support.other.abl"] }, // ':U'
32
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
33
+ { "startIndex": 18, "endIndex": 33, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'characterValues'
34
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
35
+ { "startIndex": 34, "endIndex": 36, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
36
36
  { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
37
37
  ],
38
38
  [
@@ -87,10 +87,10 @@ describe('', () => {
87
87
  { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl"] }, // ' '
88
88
  { "startIndex": 6, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'substitute'
89
89
  { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
90
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
91
- { "startIndex": 18, "endIndex": 25, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // '&1 = &2'
92
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
93
- { "startIndex": 26, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "support.other.abl"] }, // ':U'
90
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
91
+ { "startIndex": 18, "endIndex": 25, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // '&1 = &2'
92
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
93
+ { "startIndex": 26, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
94
94
  { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
95
95
  ],
96
96
  [
@@ -114,10 +114,10 @@ describe('', () => {
114
114
  { "startIndex": 15, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'b_eField.FieldSource'
115
115
  { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
116
116
  { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
117
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
118
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // '.'
119
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
120
- { "startIndex": 40, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "support.other.abl"] }, // ':u'
117
+ { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
118
+ { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // '.'
119
+ { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
120
+ { "startIndex": 40, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':u'
121
121
  { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
122
122
  { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
123
123
  { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
@@ -141,9 +141,9 @@ describe('', () => {
141
141
  { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
142
142
  { "startIndex": 18, "endIndex": 23, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'SUBST'
143
143
  { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
144
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
145
- { "startIndex": 25, "endIndex": 29, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // '&1&2'
146
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
144
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
145
+ { "startIndex": 25, "endIndex": 29, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // '&1&2'
146
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
147
147
  { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
148
148
  { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl"] }, // ' '
149
149
  { "startIndex": 32, "endIndex": 37, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'LOWER'
@@ -182,9 +182,9 @@ describe('', () => {
182
182
  { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
183
183
  { "startIndex": 12, "endIndex": 17, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'SUBST'
184
184
  { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
185
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
186
- { "startIndex": 19, "endIndex": 28, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // ' &1 AS &2'
187
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
185
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
186
+ { "startIndex": 19, "endIndex": 28, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // ' &1 AS &2'
187
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
188
188
  { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
189
189
  { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
190
190
  { "startIndex": 31, "endIndex": 46, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cParameterField'
@@ -217,9 +217,9 @@ describe('', () => {
217
217
  { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
218
218
  { "startIndex": 34, "endIndex": 39, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'SUBST'
219
219
  { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
220
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
221
- { "startIndex": 41, "endIndex": 53, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // '&1, &2 AS &3'
222
- { "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
220
+ { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
221
+ { "startIndex": 41, "endIndex": 53, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // '&1, &2 AS &3'
222
+ { "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
223
223
  { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
224
224
  { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
225
225
  { "startIndex": 56, "endIndex": 81, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cParameterDefForReplicate'
@@ -243,4 +243,3 @@ describe('', () => {
243
243
  ];
244
244
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
245
245
  })
246
-
@@ -4,22 +4,22 @@ const shared = require('../shared.js');
4
4
  describe('', () => {
5
5
  let statement = `' <INPUT TYPE = "HIDDEN" name=DVWebKey value="' GET-VALUE("DVWebKey":U) '">~n'`;
6
6
  let expectedTokens = [
7
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
8
- { "startIndex": 1, "endIndex": 49, "scopes": ["source.abl", "string.single.complex.abl"] }, // ' <INPUT TYPE = "HIDDEN" name=DVWebKey value="'
9
- { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
7
+ { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
8
+ { "startIndex": 1, "endIndex": 49, "scopes": ["source.abl", "string.quoted.single.abl"] }, // ' <INPUT TYPE = "HIDDEN" name=DVWebKey value="'
9
+ { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
10
10
  { "startIndex": 50, "endIndex": 52, "scopes": ["source.abl"] }, // ' '
11
11
  { "startIndex": 52, "endIndex": 61, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'GET-VALUE'
12
12
  { "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
13
- { "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
14
- { "startIndex": 63, "endIndex": 71, "scopes": ["source.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // 'DVWebKey'
15
- { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
16
- { "startIndex": 72, "endIndex": 74, "scopes": ["source.abl", "meta.function.arguments.abl", "string.double.complex.abl", "support.other.abl"] }, // ':U'
13
+ { "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
14
+ { "startIndex": 63, "endIndex": 71, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'DVWebKey'
15
+ { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
16
+ { "startIndex": 72, "endIndex": 74, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
17
17
  { "startIndex": 74, "endIndex": 75, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
18
18
  { "startIndex": 75, "endIndex": 76, "scopes": ["source.abl"] }, // ' '
19
- { "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
20
- { "startIndex": 77, "endIndex": 79, "scopes": ["source.abl", "string.single.complex.abl"] }, // '">'
21
- { "startIndex": 79, "endIndex": 81, "scopes": ["source.abl", "string.single.complex.abl", "constant.character.escape.abl"] }, // '~n'
22
- { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] } // '''
19
+ { "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
20
+ { "startIndex": 77, "endIndex": 79, "scopes": ["source.abl", "string.quoted.single.abl"] }, // '">'
21
+ { "startIndex": 79, "endIndex": 81, "scopes": ["source.abl", "string.quoted.single.abl", "constant.character.escape.abl"] }, // '~n'
22
+ { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] } // '''
23
23
  ];
24
24
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
25
25
  })
@@ -29,23 +29,22 @@ describe('', () => {
29
29
  describe('', () => {
30
30
  let statement = `' <INPUT TYPE = "HIDDEN" name=DVWebKey value="' SET-VALUE("DVWebKey":U) '">~n'`;
31
31
  let expectedTokens = [
32
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
33
- { "startIndex": 1, "endIndex": 49, "scopes": ["source.abl", "string.single.complex.abl"] }, // ' <INPUT TYPE = "HIDDEN" name=DVWebKey value="'
34
- { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
32
+ { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
33
+ { "startIndex": 1, "endIndex": 49, "scopes": ["source.abl", "string.quoted.single.abl"] }, // ' <INPUT TYPE = "HIDDEN" name=DVWebKey value="'
34
+ { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
35
35
  { "startIndex": 50, "endIndex": 52, "scopes": ["source.abl"] }, // ' '
36
36
  { "startIndex": 52, "endIndex": 61, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'SET-VALUE'
37
37
  { "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
38
- { "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
39
- { "startIndex": 63, "endIndex": 71, "scopes": ["source.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // 'DVWebKey'
40
- { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
41
- { "startIndex": 72, "endIndex": 74, "scopes": ["source.abl", "meta.function.arguments.abl", "string.double.complex.abl", "support.other.abl"] }, // ':U'
38
+ { "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
39
+ { "startIndex": 63, "endIndex": 71, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'DVWebKey'
40
+ { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
41
+ { "startIndex": 72, "endIndex": 74, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
42
42
  { "startIndex": 74, "endIndex": 75, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
43
43
  { "startIndex": 75, "endIndex": 76, "scopes": ["source.abl"] }, // ' '
44
- { "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
45
- { "startIndex": 77, "endIndex": 79, "scopes": ["source.abl", "string.single.complex.abl"] }, // '">'
46
- { "startIndex": 79, "endIndex": 81, "scopes": ["source.abl", "string.single.complex.abl", "constant.character.escape.abl"] }, // '~n'
47
- { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] } // '''
44
+ { "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
45
+ { "startIndex": 77, "endIndex": 79, "scopes": ["source.abl", "string.quoted.single.abl"] }, // '">'
46
+ { "startIndex": 79, "endIndex": 81, "scopes": ["source.abl", "string.quoted.single.abl", "constant.character.escape.abl"] }, // '~n'
47
+ { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] } // '''
48
48
  ];
49
49
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
50
50
  })
51
-
@@ -27,10 +27,10 @@ trim(c_test)`;
27
27
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
28
28
  { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
29
29
  { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
30
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
31
- { "startIndex": 10, "endIndex": 22, "scopes": ["source.abl", "string.single.complex.abl"] }, // 'Test message'
32
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
33
- { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "string.single.complex.abl", "support.other.abl"] }, // ':u'
30
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
31
+ { "startIndex": 10, "endIndex": 22, "scopes": ["source.abl", "string.quoted.single.abl"] }, // 'Test message'
32
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
33
+ { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "string.quoted.single.abl", "support.other.abl"] }, // ':u'
34
34
  { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
35
35
  ],
36
36
  [
@@ -69,10 +69,10 @@ trim( c_test)`;
69
69
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
70
70
  { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
71
71
  { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
72
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
73
- { "startIndex": 10, "endIndex": 22, "scopes": ["source.abl", "string.single.complex.abl"] }, // 'Test message'
74
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
75
- { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "string.single.complex.abl", "support.other.abl"] }, // ':u'
72
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
73
+ { "startIndex": 10, "endIndex": 22, "scopes": ["source.abl", "string.quoted.single.abl"] }, // 'Test message'
74
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
75
+ { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "string.quoted.single.abl", "support.other.abl"] }, // ':u'
76
76
  { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
77
77
  ],
78
78
  [
@@ -111,10 +111,10 @@ trim(c_test )`;
111
111
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
112
112
  { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
113
113
  { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
114
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
115
- { "startIndex": 10, "endIndex": 22, "scopes": ["source.abl", "string.single.complex.abl"] }, // 'Test message'
116
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
117
- { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "string.single.complex.abl", "support.other.abl"] }, // ':u'
114
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
115
+ { "startIndex": 10, "endIndex": 22, "scopes": ["source.abl", "string.quoted.single.abl"] }, // 'Test message'
116
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
117
+ { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "string.quoted.single.abl", "support.other.abl"] }, // ':u'
118
118
  { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
119
119
  ],
120
120
  [
@@ -3,15 +3,62 @@ const shared = require('../shared.js');
3
3
 
4
4
  describe('', () => {
5
5
  let statement = `&global-define PROCEDURE-TYPE Procedure`;
6
- // `&Scoped-define PROCEDURE-TYPE Procedure
7
- // &Scoped-define DB-AWARE no`;
6
+ let expectedTokens = [
7
+ { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
8
+ { "startIndex": 1, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.abl", "keyword.control.directive.define.abl"] }, // 'global-define'
9
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
10
+ { "startIndex": 15, "endIndex": 29, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'PROCEDURE-TYPE'
11
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
12
+ { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "keyword.other.abl"] } // 'Procedure'
13
+ ];
14
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
15
+ })
16
+
17
+ describe('', () => {
18
+ let statement = `&global-define~
19
+ SOMETHING value`;
20
+ let expectedTokens = [
21
+ [
22
+ { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
23
+ { "startIndex": 1, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.abl", "keyword.control.directive.define.abl"] }, // 'global-define'
24
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.separator.continuation"] } // '~'
25
+ ],
26
+ [
27
+ { "startIndex": 0, "endIndex": 9, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'SOMETHING'
28
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
29
+ { "startIndex": 10, "endIndex": 15, "scopes": ["source.abl", "keyword.other.abl"] } // 'value'
30
+ ]
31
+ ];
32
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
33
+ })
34
+
8
35
 
36
+ describe('test is for global-define, the preprocessor name and the endline continuations', () => {
37
+ let statement = `&global-define~
38
+ SOMETHING value~
39
+ more value~
40
+ done`;
9
41
  let expectedTokens = [
10
- { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.define.abl", "keyword.other.abl"] },
11
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
12
- { "startIndex": 15, "endIndex": 29, "scopes": ["source.abl", "meta.preprocessor.define.abl", "entity.name.function.preprocessor.abl"] },
13
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
14
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "meta.preprocessor.define.abl"] }
42
+ [
43
+ { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
44
+ { "startIndex": 1, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.abl", "keyword.control.directive.define.abl"] }, // 'global-define'
45
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.separator.continuation"] } // '~'
46
+ ],
47
+ [
48
+ { "startIndex": 0, "endIndex": 9, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'SOMETHING'
49
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
50
+ { "startIndex": 10, "endIndex": 15, "scopes": ["source.abl", "keyword.other.abl"] }, // 'value'
51
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "punctuation.separator.continuation"] } // '~'
52
+ ],
53
+ [
54
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "variable.other.abl"] }, // 'more'
55
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
56
+ { "startIndex": 5, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'value'
57
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "punctuation.separator.continuation"] } // '~'
58
+ ],
59
+ [
60
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "variable.other.abl"] } // 'done'
61
+ ]
15
62
  ];
16
63
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
17
64
  })