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
@@ -73,9 +73,9 @@ describe('', () => {
73
73
  { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
74
74
  { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
75
75
  { "startIndex": 47, "endIndex": 49, "scopes": ["source.abl"] }, // ' '
76
- { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
77
- { "startIndex": 50, "endIndex": 56, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'ipName'
78
- { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
76
+ { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
77
+ { "startIndex": 50, "endIndex": 56, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'ipName'
78
+ { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
79
79
  { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
80
80
  { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
81
81
  ];
@@ -107,10 +107,10 @@ describe('', () => {
107
107
  { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
108
108
  { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Subscribe'
109
109
  { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
110
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
111
- { "startIndex": 41, "endIndex": 65, "scopes": ["source.abl", "string.single.complex.abl"] }, // 'NewTempTableAddedHandler'
112
- { "startIndex": 65, "endIndex": 66, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
113
- { "startIndex": 66, "endIndex": 68, "scopes": ["source.abl", "string.single.complex.abl", "support.other.abl"] }, // ':u'
110
+ { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
111
+ { "startIndex": 41, "endIndex": 65, "scopes": ["source.abl", "string.quoted.single.abl"] }, // 'NewTempTableAddedHandler'
112
+ { "startIndex": 65, "endIndex": 66, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
113
+ { "startIndex": 66, "endIndex": 68, "scopes": ["source.abl", "string.quoted.single.abl", "support.other.abl"] }, // ':u'
114
114
  { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl"] }, // ' '
115
115
  { "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
116
116
  { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
@@ -226,9 +226,9 @@ describe('', () => {
226
226
  { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl"] }, // ' '
227
227
  { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
228
228
  { "startIndex": 49, "endIndex": 51, "scopes": ["source.abl"] }, // ' '
229
- { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
230
- { "startIndex": 52, "endIndex": 58, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'ipName'
231
- { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
229
+ { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
230
+ { "startIndex": 52, "endIndex": 58, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'ipName'
231
+ { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
232
232
  { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
233
233
  { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
234
234
  ];
@@ -260,10 +260,10 @@ describe('', () => {
260
260
  { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
261
261
  { "startIndex": 30, "endIndex": 41, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Unsubscribe'
262
262
  { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
263
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
264
- { "startIndex": 43, "endIndex": 67, "scopes": ["source.abl", "string.single.complex.abl"] }, // 'NewTempTableAddedHandler'
265
- { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
266
- { "startIndex": 68, "endIndex": 70, "scopes": ["source.abl", "string.single.complex.abl", "support.other.abl"] }, // ':u'
263
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
264
+ { "startIndex": 43, "endIndex": 67, "scopes": ["source.abl", "string.quoted.single.abl"] }, // 'NewTempTableAddedHandler'
265
+ { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
266
+ { "startIndex": 68, "endIndex": 70, "scopes": ["source.abl", "string.quoted.single.abl", "support.other.abl"] }, // ':u'
267
267
  { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl"] }, // ' '
268
268
  { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
269
269
  { "startIndex": 72, "endIndex": 73, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
@@ -306,4 +306,3 @@ describe('', () => {
306
306
  ];
307
307
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
308
308
  })
309
-
@@ -10,15 +10,15 @@ describe('', () => {
10
10
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
11
11
  { "startIndex": 7, "endIndex": 16, "scopes": ["source.abl", "keyword.other.abl"] }, // 'delimiter'
12
12
  { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
13
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
14
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "string.double.complex.abl"] }, // ','
15
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] } // '"'
13
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
14
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "string.quoted.double.abl"] }, // ','
15
+ { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] } // '"'
16
16
  ],
17
17
  [
18
18
  { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
19
- { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
20
- { "startIndex": 3, "endIndex": 7, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'blah'
21
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
19
+ { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
20
+ { "startIndex": 3, "endIndex": 7, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'blah'
21
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
22
22
  { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
23
23
  ]
24
24
  ];
@@ -98,9 +98,9 @@ describe('', () => {
98
98
  { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
99
99
  { "startIndex": 23, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'substitute'
100
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.single.complex.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.single.complex.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.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
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
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
105
  { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
106
106
  { "startIndex": 72, "endIndex": 83, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'baseRequest'
@@ -157,9 +157,9 @@ describe('', () => {
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"] }, // ' '
160
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
161
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "string.double.complex.abl"] }, // '1'
162
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
160
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
161
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "string.quoted.double.abl"] }, // '1'
162
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
163
163
  { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
164
164
  { "startIndex": 19, "endIndex": 23, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
165
165
  { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
@@ -426,9 +426,9 @@ END.`;
426
426
  { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
427
427
  { "startIndex": 4, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'MESSAGE'
428
428
  { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
429
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
430
- { "startIndex": 13, "endIndex": 67, "scopes": ["source.abl", "string.double.complex.abl"] }, // ' LOOP LEAVE --> HU to SKU conversion: enough broken-up'
431
- { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
429
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
430
+ { "startIndex": 13, "endIndex": 67, "scopes": ["source.abl", "string.quoted.double.abl"] }, // ' LOOP LEAVE --> HU to SKU conversion: enough broken-up'
431
+ { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
432
432
  { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
433
433
  ],
434
434
  [
@@ -22,9 +22,9 @@ describe('', () => {
22
22
  { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
23
23
  { "startIndex": 2, "endIndex": 9, "scopes": ["source.abl", "keyword.other.abl"] }, // 'message'
24
24
  { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
25
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
26
- { "startIndex": 11, "endIndex": 14, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'Yes'
27
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
25
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
26
+ { "startIndex": 11, "endIndex": 14, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'Yes'
27
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
28
28
  { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
29
29
  { "startIndex": 16, "endIndex": 23, "scopes": ["source.abl", "keyword.other.abl"] }, // 'view-as'
30
30
  { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
@@ -97,4 +97,3 @@ assign
97
97
  ];
98
98
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
99
99
  })
100
-
@@ -6,9 +6,9 @@ describe('', () => {
6
6
  let expectedTokens = [
7
7
  { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "variable.other.abl"] }, // 'rmessage'
8
8
  { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
9
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
10
- { "startIndex": 10, "endIndex": 17, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'asvasas'
11
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
9
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
10
+ { "startIndex": 10, "endIndex": 17, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'asvasas'
11
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
12
12
  { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
13
13
  { "startIndex": 19, "endIndex": 26, "scopes": ["source.abl", "keyword.other.abl"] }, // 'view-as'
14
14
  { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl"] }, // ' '
@@ -49,9 +49,9 @@ describe('', () => {
49
49
  { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl"] }, // ' '
50
50
  { "startIndex": 38, "endIndex": 45, "scopes": ["source.abl", "keyword.other.abl"] }, // 'message'
51
51
  { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
52
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
53
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "string.double.complex.abl"] }, // 's'
54
- { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
52
+ { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
53
+ { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 's'
54
+ { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
55
55
  { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
56
56
  ],
57
57
  [
@@ -32,11 +32,10 @@ describe('', () => {
32
32
  { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
33
33
  { "startIndex": 8, "endIndex": 16, "scopes": ["source.abl", "keyword.other.abl"] }, // 'external'
34
34
  { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
35
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
36
- { "startIndex": 18, "endIndex": 24, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'dll.so'
37
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
35
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
36
+ { "startIndex": 18, "endIndex": 24, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'dll.so'
37
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
38
38
  { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
39
39
  ];
40
40
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
41
41
  })
42
-
@@ -14,9 +14,9 @@ describe('', () => {
14
14
  ],
15
15
  [
16
16
  { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
17
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
18
- { "startIndex": 5, "endIndex": 9, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'fasa'
19
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] } // '"'
17
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
18
+ { "startIndex": 5, "endIndex": 9, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'fasa'
19
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] } // '"'
20
20
  ],
21
21
  [
22
22
  { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
@@ -33,4 +33,3 @@ describe('', () => {
33
33
  ];
34
34
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
35
35
  })
36
-
@@ -0,0 +1,212 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `define variable Avogadro as decimal init 6.02214076e+23.`;
6
+ let expectedTokens = [
7
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
8
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
9
+ { "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'variable'
10
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
11
+ { "startIndex": 16, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'Avogadro'
12
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
13
+ { "startIndex": 25, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
14
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
15
+ { "startIndex": 28, "endIndex": 35, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'decimal'
16
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
17
+ { "startIndex": 36, "endIndex": 40, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'init'
18
+ { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
19
+ { "startIndex": 41, "endIndex": 55, "scopes": ["source.abl", "meta.define.abl", "constant.numeric.source.abl"] }, // '6.02214076e+23'
20
+ { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
21
+ ];
22
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
23
+ })
24
+
25
+ describe('', () => {
26
+ let statement = `var decimal Avogadro = 6.02214076e+23.`;
27
+ let expectedTokens = [
28
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
29
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
30
+ { "startIndex": 4, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'decimal'
31
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
32
+ { "startIndex": 12, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'Avogadro'
33
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
34
+ { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
35
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
36
+ { "startIndex": 23, "endIndex": 37, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '6.02214076e+23'
37
+ { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
38
+ ];
39
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
40
+ })
41
+
42
+ describe('', () => {
43
+ let statement = `var integer someintval = 1.456e-3 + 4.246e+4.`;
44
+ let expectedTokens = [
45
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
46
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
47
+ { "startIndex": 4, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'integer'
48
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
49
+ { "startIndex": 12, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'someintval'
50
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
51
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
52
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
53
+ { "startIndex": 25, "endIndex": 33, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '1.456e-3'
54
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
55
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '+'
56
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl"] }, // ' '
57
+ { "startIndex": 36, "endIndex": 44, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '4.246e+4'
58
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
59
+ ];
60
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
61
+ })
62
+
63
+ describe('', () => {
64
+ let statement = `var decimal[] planetsDiameterkm = [12.742e+3, 4.8794e+3, 6779.0, 12.104e+3, 23766e-1].`;
65
+ let expectedTokens = [
66
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
67
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
68
+ { "startIndex": 4, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'decimal'
69
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
70
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
71
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
72
+ { "startIndex": 14, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'planetsDiameterkm'
73
+ { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
74
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
75
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
76
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
77
+ { "startIndex": 35, "endIndex": 44, "scopes": ["source.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '12.742e+3'
78
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
79
+ { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
80
+ { "startIndex": 46, "endIndex": 55, "scopes": ["source.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '4.8794e+3'
81
+ { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
82
+ { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
83
+ { "startIndex": 57, "endIndex": 63, "scopes": ["source.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '6779.0'
84
+ { "startIndex": 63, "endIndex": 64, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
85
+ { "startIndex": 64, "endIndex": 65, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
86
+ { "startIndex": 65, "endIndex": 74, "scopes": ["source.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '12.104e+3'
87
+ { "startIndex": 74, "endIndex": 75, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
88
+ { "startIndex": 75, "endIndex": 76, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
89
+ { "startIndex": 76, "endIndex": 84, "scopes": ["source.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '23766e-1'
90
+ { "startIndex": 84, "endIndex": 85, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
91
+ { "startIndex": 85, "endIndex": 86, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
92
+ ];
93
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
94
+ })
95
+
96
+ describe('', () => {
97
+ let statement = `define variable Avogadro as decimal init 0.
98
+ Avogadro = decimal("6.02214076e+23").`;
99
+ let expectedTokens = [
100
+ [
101
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
102
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
103
+ { "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'variable'
104
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
105
+ { "startIndex": 16, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'Avogadro'
106
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
107
+ { "startIndex": 25, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
108
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
109
+ { "startIndex": 28, "endIndex": 35, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'decimal'
110
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
111
+ { "startIndex": 36, "endIndex": 40, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'init'
112
+ { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
113
+ { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.define.abl", "constant.numeric.source.abl"] }, // '0'
114
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
115
+ ],
116
+ [
117
+ { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "variable.other.abl"] }, // 'Avogadro'
118
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
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"] }, // ')'
127
+ { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
128
+ ]
129
+ ];
130
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
131
+ })
132
+
133
+ describe('', () => {
134
+ let statement = `define variable Avogadro as decimal init 6.02214076e+23 format "9.9999<<e+99".`;
135
+ let expectedTokens = [
136
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
137
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
138
+ { "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'variable'
139
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
140
+ { "startIndex": 16, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'Avogadro'
141
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
142
+ { "startIndex": 25, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
143
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
144
+ { "startIndex": 28, "endIndex": 35, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'decimal'
145
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
146
+ { "startIndex": 36, "endIndex": 40, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'init'
147
+ { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
148
+ { "startIndex": 41, "endIndex": 55, "scopes": ["source.abl", "meta.define.abl", "constant.numeric.source.abl"] }, // '6.02214076e+23'
149
+ { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
150
+ { "startIndex": 56, "endIndex": 62, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'format'
151
+ { "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
152
+ { "startIndex": 63, "endIndex": 64, "scopes": ["source.abl", "meta.define.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
153
+ { "startIndex": 64, "endIndex": 76, "scopes": ["source.abl", "meta.define.abl", "string.quoted.double.abl"] }, // '9.9999<<e+99'
154
+ { "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "meta.define.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
155
+ { "startIndex": 77, "endIndex": 78, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
156
+ ];
157
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
158
+ })
159
+
160
+ describe('', () => {
161
+ let statement = ` fix-codepage(jsondata) = "utf-8".
162
+ jsondata = '~{ "somevalue": 123e+5 ~}'.`;
163
+ let expectedTokens = [
164
+ [
165
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
166
+ { "startIndex": 4, "endIndex": 16, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'fix-codepage'
167
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
168
+ { "startIndex": 17, "endIndex": 25, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'jsondata'
169
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
170
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl"] }, // ' '
171
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
172
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl"] }, // ' '
173
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
174
+ { "startIndex": 30, "endIndex": 35, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'utf-8'
175
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
176
+ { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
177
+ ],
178
+ [
179
+ { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "variable.other.abl"] }, // 'jsondata'
180
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
181
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
182
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
183
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
184
+ { "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "string.quoted.single.abl", "constant.character.escape.abl"] }, // '~{'
185
+ { "startIndex": 14, "endIndex": 35, "scopes": ["source.abl", "string.quoted.single.abl"] }, // ' "somevalue": 123e+5 '
186
+ { "startIndex": 35, "endIndex": 37, "scopes": ["source.abl", "string.quoted.single.abl", "constant.character.escape.abl"] }, // '~}'
187
+ { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
188
+ { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
189
+ ]
190
+ ];
191
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
192
+ })
193
+
194
+ describe('', () => {
195
+ let statement = `jsondata:Add("somevalue", 123e+5 ).`;
196
+ let expectedTokens = [
197
+ { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "variable.other.abl"] }, // 'jsondata'
198
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
199
+ { "startIndex": 9, "endIndex": 12, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Add'
200
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
201
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
202
+ { "startIndex": 14, "endIndex": 23, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'somevalue'
203
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
204
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
205
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
206
+ { "startIndex": 26, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '123e+5'
207
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
208
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
209
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
210
+ ];
211
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
212
+ })
@@ -68,10 +68,10 @@ describe('', () => {
68
68
  { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
69
69
  { "startIndex": 7, "endIndex": 9, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '+='
70
70
  { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
71
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
72
- { "startIndex": 11, "endIndex": 16, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'thing'
73
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
74
- { "startIndex": 17, "endIndex": 19, "scopes": ["source.abl", "string.double.complex.abl", "support.other.abl"] }, // ':u'
71
+ { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
72
+ { "startIndex": 11, "endIndex": 16, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'thing'
73
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
74
+ { "startIndex": 17, "endIndex": 19, "scopes": ["source.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':u'
75
75
  { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
76
76
  ];
77
77
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
@@ -117,9 +117,9 @@ else if Not v_string matches "bar" then .`;
117
117
  { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
118
118
  { "startIndex": 17, "endIndex": 24, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // 'matches'
119
119
  { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
120
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
121
- { "startIndex": 26, "endIndex": 29, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'foo'
122
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
120
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
121
+ { "startIndex": 26, "endIndex": 29, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'foo'
122
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
123
123
  { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
124
124
  { "startIndex": 31, "endIndex": 35, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
125
125
  { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl"] }, // ' '
@@ -136,9 +136,9 @@ else if Not v_string matches "bar" then .`;
136
136
  { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
137
137
  { "startIndex": 21, "endIndex": 28, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // 'matches'
138
138
  { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl"] }, // ' '
139
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
140
- { "startIndex": 30, "endIndex": 33, "scopes": ["source.abl", "string.double.complex.abl"] }, // 'bar'
141
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
139
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
140
+ { "startIndex": 30, "endIndex": 33, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'bar'
141
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
142
142
  { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl"] }, // ' '
143
143
  { "startIndex": 35, "endIndex": 39, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
144
144
  { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl"] }, // ' '