abl-tmlanguage 1.3.28 → 1.3.29

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 (140) hide show
  1. package/package.json +5 -2
  2. package/.github/workflows/ci.yml +0 -36
  3. package/CHANGELOG.md +0 -139
  4. package/abl-functions.txt +0 -548
  5. package/abl-keywords.txt +0 -416
  6. package/abl-methods.txt +0 -1053
  7. package/index.mjs +0 -508
  8. package/spec/analyze-suspend-resume/analyze-suspend-resume.spec.js +0 -17
  9. package/spec/annotations/annotation.spec.js +0 -366
  10. package/spec/array-extent/issue#5.spec.js +0 -26
  11. package/spec/blocks/block-labels.spec.js +0 -201
  12. package/spec/blocks/block-options.spec.js +0 -174
  13. package/spec/blocks/finally-blocks.spec.js +0 -90
  14. package/spec/blocks/on-quit.spec.js +0 -59
  15. package/spec/comments/comment-in-block-statement.spec.js +0 -153
  16. package/spec/comments/comment-in-for-each.spec.js +0 -105
  17. package/spec/comments/comment-in-function-args.spec.js +0 -88
  18. package/spec/comments/spacious-comment.spec.js +0 -73
  19. package/spec/comments/vscode-abl-issue#127.spec.js +0 -165
  20. package/spec/create-widgets/create-window.spec.js +0 -224
  21. package/spec/db-table-and-field/buffer-copy.spec.js +0 -246
  22. package/spec/db-table-and-field/create-alias.spec.js +0 -131
  23. package/spec/db-table-and-field/create-record.spec.js +0 -75
  24. package/spec/db-table-and-field/double-colon-access.spec.js +0 -154
  25. package/spec/db-table-and-field/field-in-function.spec.js +0 -58
  26. package/spec/db-table-and-field/fields-except.spec.js +0 -68
  27. package/spec/db-table-and-field/find-record.spec.js +0 -158
  28. package/spec/db-table-and-field/foreach.spec.js +0 -588
  29. package/spec/db-table-and-field/issue#88.spec.js +0 -121
  30. package/spec/db-table-and-field/new-record.spec.js +0 -250
  31. package/spec/db-table-and-field/query-get.spec.js +0 -137
  32. package/spec/define/define-browse.spec.js +0 -454
  33. package/spec/define/define-button.spec.js +0 -233
  34. package/spec/define/define-query.spec.js +0 -144
  35. package/spec/define/define-rectangle.spec.js +0 -47
  36. package/spec/define-buffer/create-buffer.spec.js +0 -212
  37. package/spec/define-buffer/simple-single-line.spec.js +0 -155
  38. package/spec/define-enum/type-name.spec.js +0 -200
  39. package/spec/define-event/simple-single-line.spec.js +0 -61
  40. package/spec/define-frame/issue#173.spec.js +0 -580
  41. package/spec/define-parameter/simple-single-line.spec.js +0 -228
  42. package/spec/define-property/property-getter.spec.js +0 -70
  43. package/spec/define-stream/simple-single-line.spec.js +0 -42
  44. package/spec/define-temp-table/define-dataset.spec.js +0 -217
  45. package/spec/define-temp-table/define-temp-table.spec.js +0 -605
  46. package/spec/define-variable/define-like.spec.js +0 -78
  47. package/spec/define-variable/extent.spec.js +0 -778
  48. package/spec/define-variable/initial.spec.js +0 -126
  49. package/spec/define-variable/issue#6.spec.js +0 -280
  50. package/spec/define-variable/issue#9.spec.js +0 -45
  51. package/spec/define-variable/simple-single-line.spec.js +0 -181
  52. package/spec/define-variable/single-line-with-a-comment-at-the-end.spec.js +0 -62
  53. package/spec/define-variable/single-line-with-a-space-and-a-comment-at-the-end.spec.js +0 -65
  54. package/spec/define-variable/tm-issue#2.spec.js +0 -25
  55. package/spec/define-variable/var-statement.spec.js +0 -467
  56. package/spec/do/do-blocks.spec.js +0 -289
  57. package/spec/do/issue#3.spec.js +0 -83
  58. package/spec/do/stop-after.spec.js +0 -79
  59. package/spec/for-each/for-each.spec.js +0 -111
  60. package/spec/for-each/issue#321.spec.js +0 -116
  61. package/spec/for-each/vscode-abl.issue#166.spec.js +0 -83
  62. package/spec/function-call/can-find.spec.js +0 -239
  63. package/spec/function-call/include-in-argument.spec.js +0 -120
  64. package/spec/function-call/misc-abl-functions.spec.js +0 -59
  65. package/spec/function-call/nested-functions.spec.js +0 -245
  66. package/spec/function-call/pass-table.spec.js +0 -116
  67. package/spec/function-call/set-size.spec.js +0 -56
  68. package/spec/function-call/udf-calls.spec.js +0 -50
  69. package/spec/function-call/vscode-abl-issue#19.spec.js +0 -129
  70. package/spec/function-definition/vscode-abl-issue#166.spec.js +0 -446
  71. package/spec/global-scoped-define/global-define.spec.js +0 -64
  72. package/spec/global-scoped-define/scoped-define-with-procedure-keyword.spec.js +0 -70
  73. package/spec/global-scoped-define/undefine.spec.js +0 -44
  74. package/spec/include/abl-tmlanguage-issues#5.spec.js +0 -40
  75. package/spec/include/include-file-name.spec.js +0 -267
  76. package/spec/include/unnamed-arguments.spec.js +0 -38
  77. package/spec/include/vscode-abl-issue#45.spec.js +0 -20
  78. package/spec/include/vscode-abl-issue#77.spec.js +0 -128
  79. package/spec/include/vscode-abl-issue#80.spec.js +0 -50
  80. package/spec/input-output/input-from.spec.js +0 -504
  81. package/spec/input-output/output-to.spec.js +0 -456
  82. package/spec/method-attribute-property-call/abl-method-attribute-call.spec.js +0 -98
  83. package/spec/method-attribute-property-call/connected-method.spec.js +0 -29
  84. package/spec/method-attribute-property-call/datset-table-attribute-method-call.spec.js +0 -53
  85. package/spec/method-attribute-property-call/get-set-method-name.spec.js +0 -140
  86. package/spec/method-attribute-property-call/method-call.spec.js +0 -268
  87. package/spec/method-attribute-property-call/nested-property-call.spec.js +0 -18
  88. package/spec/method-attribute-property-call/unqualified-method-call.spec.js +0 -41
  89. package/spec/method-definition/constructor.spec.js +0 -174
  90. package/spec/method-definition/method.spec.js +0 -541
  91. package/spec/misc-statements/array-for.spec.js +0 -21
  92. package/spec/misc-statements/case-statement.spec.js +0 -96
  93. package/spec/misc-statements/class-in-var-name.spec.js +0 -204
  94. package/spec/misc-statements/copy-lob.spec.js +0 -144
  95. package/spec/misc-statements/def-in-name.spec.js +0 -20
  96. package/spec/misc-statements/delete-objects.spec.js +0 -65
  97. package/spec/misc-statements/do-in-name.spec.js +0 -259
  98. package/spec/misc-statements/event-subscribe.spec.js +0 -308
  99. package/spec/misc-statements/export-delimiter.spec.js +0 -37
  100. package/spec/misc-statements/guid.spec.js +0 -97
  101. package/spec/misc-statements/if-then.spec.js +0 -454
  102. package/spec/misc-statements/issue#173.spec.js +0 -99
  103. package/spec/misc-statements/message-statement.spec.js +0 -21
  104. package/spec/misc-statements/record-buffer-functions.spec.js +0 -73
  105. package/spec/misc-statements/release.spec.js +0 -41
  106. package/spec/misc-statements/return-statement.spec.js +0 -64
  107. package/spec/misc-statements/skip-statement-and-fuction.spec.js +0 -35
  108. package/spec/misc-statements/system-handles.spec.js +0 -122
  109. package/spec/numbers/scientific-notation.spec.js +0 -212
  110. package/spec/operators/operators.spec.js +0 -149
  111. package/spec/operators/safe-navigation-operator.spec.js +0 -246
  112. package/spec/preprocesors/issue166.spec.js +0 -91
  113. package/spec/preprocesors/preprocessor-functions.spec.js +0 -77
  114. package/spec/preprocesors/proparse-preprocessor.spec.js +0 -90
  115. package/spec/procedure-definition/empty-proc.spec.js +0 -134
  116. package/spec/procedure-definition/trigger-procedure.spec.js +0 -132
  117. package/spec/procedure-definition/vscode-abl-issue#22.spec.js +0 -46
  118. package/spec/procedure-definition/vscode-abl-issue#26.spec.js +0 -31
  119. package/spec/procedure-definition/vscode-abl-issue#325.spec.js +0 -88
  120. package/spec/procedure-definition/vscode-abl-issue#62.spec.js +0 -39
  121. package/spec/run-statement/run-statement.spec.js +0 -868
  122. package/spec/shared.js +0 -104
  123. package/spec/strings/translation-attribute.spec.js +0 -52
  124. package/spec/strings/vscode-abl-issue#11.spec.js +0 -56
  125. package/spec/strings/vscode-abl-issue#28.spec.js +0 -31
  126. package/spec/type-name/argument.spec.js +0 -206
  127. package/spec/type-name/cast.spec.js +0 -163
  128. package/spec/type-name/define-class.spec.js +0 -555
  129. package/spec/type-name/define-enum.spec.js +0 -44
  130. package/spec/type-name/define-interface.spec.js +0 -159
  131. package/spec/type-name/define-property.spec.js +0 -301
  132. package/spec/type-name/define-temp-table.spec.js +0 -434
  133. package/spec/type-name/define-type-spec.js +0 -435
  134. package/spec/type-name/define-variable-property.spec.js +0 -264
  135. package/spec/type-name/define-variable.spec.js +0 -386
  136. package/spec/type-name/get-class.spec.js +0 -91
  137. package/spec/type-name/new.spec.js +0 -185
  138. package/spec/type-name/parameter-as.spec.js +0 -978
  139. package/spec/type-name/type-name.spec.js +0 -880
  140. package/spec/type-name/using.spec.js +0 -160
@@ -1,96 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `case iLineNumber:
6
- when 1 then Assert:Equals("error", cLogLine).
7
- when 2 then Assert:Equals("error", cLogLine).
8
- when 3 then Assert:Equals("error", cLogLine).
9
- otherwise leave.
10
- end case.`;
11
- let expectedTokens = [
12
- [
13
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'case'
14
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
15
- { "startIndex": 5, "endIndex": 16, "scopes": ["source.abl", "variable.other.abl"] }, // 'iLineNumber'
16
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
17
- ],
18
- [
19
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
20
- { "startIndex": 2, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'when'
21
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
22
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '1'
23
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
24
- { "startIndex": 9, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
25
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
26
- { "startIndex": 14, "endIndex": 20, "scopes": ["source.abl", "variable.other.abl"] }, // 'Assert'
27
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
28
- { "startIndex": 21, "endIndex": 27, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Equals'
29
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
30
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
31
- { "startIndex": 29, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'error'
32
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
33
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
34
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
35
- { "startIndex": 37, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cLogLine'
36
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
37
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
38
- ],
39
- [
40
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
41
- { "startIndex": 2, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'when'
42
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
43
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '2'
44
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
45
- { "startIndex": 9, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
46
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
47
- { "startIndex": 14, "endIndex": 20, "scopes": ["source.abl", "variable.other.abl"] }, // 'Assert'
48
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
49
- { "startIndex": 21, "endIndex": 27, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Equals'
50
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
51
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
52
- { "startIndex": 29, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'error'
53
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
54
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
55
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
56
- { "startIndex": 37, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cLogLine'
57
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
58
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
59
- ],
60
- [
61
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
62
- { "startIndex": 2, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'when'
63
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
64
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '3'
65
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
66
- { "startIndex": 9, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'then'
67
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
68
- { "startIndex": 14, "endIndex": 20, "scopes": ["source.abl", "variable.other.abl"] }, // 'Assert'
69
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
70
- { "startIndex": 21, "endIndex": 27, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Equals'
71
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
72
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
73
- { "startIndex": 29, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'error'
74
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
75
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
76
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
77
- { "startIndex": 37, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cLogLine'
78
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
79
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
80
- ],
81
- [
82
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
83
- { "startIndex": 2, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'otherwise'
84
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
85
- { "startIndex": 12, "endIndex": 17, "scopes": ["source.abl", "keyword.other.abl"] }, // 'leave'
86
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
87
- ],
88
- [
89
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
90
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
91
- { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'case'
92
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
93
- ]
94
- ];
95
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
96
- })
@@ -1,204 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `DO mi-i = 1 to NUM-ENTRIES(mc-g-list-class):
6
-
7
- LOOP-TRADE:
8
- FOR EACH hist-trn
9
- WHERE hist-trn.regn = g_regn
10
- AND hist-trn.fund-no = ENTRY(mi-i,mc-g-list-class)
11
- AND hist-trn.order-date >= mdt-g-date-from
12
- AND hist-trn.order-data <= mdt-g-date-to
13
- NO-LOCK :
14
-
15
- IF mg-g-account-no <> "" AND hist-trn.account-no <> mc-g-account-no THEN NEXT LOOP-TRADE.
16
-
17
- /* Keep only redemption */
18
- IF hist-trn.TYPE <> "S" THEN NEXT LOOP-TRADE.
19
-
20
- IF LOOKUP(hist-trn.h-status, "P,W,C") = 0 THEN NEXT LOOP-TRADE.
21
- END.
22
- END.`;
23
- let expectedTokens = [
24
- [
25
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'DO'
26
- { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
27
- { "startIndex": 3, "endIndex": 7, "scopes": ["source.abl", "meta.block.abl", "variable.other.abl"] }, // 'mi-i'
28
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
29
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.block.abl", "keyword.operator.source.abl"] }, // '='
30
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
31
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.block.abl", "constant.numeric.source.abl"] }, // '1'
32
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
33
- { "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'to'
34
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
35
- { "startIndex": 15, "endIndex": 26, "scopes": ["source.abl", "meta.block.abl", "support.function.abl"] }, // 'NUM-ENTRIES'
36
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
37
- { "startIndex": 27, "endIndex": 42, "scopes": ["source.abl", "meta.block.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mc-g-list-class'
38
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.block.abl", "meta.brace.round.js"] }, // ')'
39
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
40
- ],
41
- [
42
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
43
- ],
44
- [
45
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] }, // ' '
46
- { "startIndex": 1, "endIndex": 11, "scopes": ["source.abl", "entity.name.label.abl"] }, // 'LOOP-TRADE'
47
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
48
- ],
49
- [
50
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] }, // ' '
51
- { "startIndex": 1, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'FOR'
52
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
53
- { "startIndex": 5, "endIndex": 9, "scopes": ["source.abl", "keyword.other.abl"] }, // 'EACH'
54
- { "startIndex": 9, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
55
- { "startIndex": 11, "endIndex": 19, "scopes": ["source.abl", "storage.data.table.abl"] } // 'hist-trn'
56
- ],
57
- [
58
- { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
59
- { "startIndex": 5, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'WHERE'
60
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
61
- { "startIndex": 11, "endIndex": 24, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'hist-trn.regn'
62
- { "startIndex": 24, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
63
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
64
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl"] }, // ' '
65
- { "startIndex": 33, "endIndex": 39, "scopes": ["source.abl", "variable.other.abl"] } // 'g_regn'
66
- ],
67
- [
68
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
69
- { "startIndex": 7, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'AND'
70
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
71
- { "startIndex": 11, "endIndex": 27, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'hist-trn.fund-no'
72
- { "startIndex": 27, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
73
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
74
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl"] }, // ' '
75
- { "startIndex": 33, "endIndex": 38, "scopes": ["source.abl", "support.function.abl"] }, // 'ENTRY'
76
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
77
- { "startIndex": 39, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mi-i'
78
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
79
- { "startIndex": 44, "endIndex": 59, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mc-g-list-class'
80
- { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
81
- ],
82
- [
83
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
84
- { "startIndex": 7, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'AND'
85
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
86
- { "startIndex": 11, "endIndex": 30, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'hist-trn.order-date'
87
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
88
- { "startIndex": 31, "endIndex": 33, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '>='
89
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
90
- { "startIndex": 34, "endIndex": 49, "scopes": ["source.abl", "variable.other.abl"] } // 'mdt-g-date-from'
91
- ],
92
- [
93
- { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
94
- { "startIndex": 14, "endIndex": 17, "scopes": ["source.abl", "keyword.other.abl"] }, // 'AND'
95
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
96
- { "startIndex": 18, "endIndex": 37, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'hist-trn.order-data'
97
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl"] }, // ' '
98
- { "startIndex": 38, "endIndex": 40, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '<='
99
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl"] }, // ' '
100
- { "startIndex": 41, "endIndex": 54, "scopes": ["source.abl", "variable.other.abl"] } // 'mdt-g-date-to'
101
- ],
102
- [
103
- { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
104
- { "startIndex": 14, "endIndex": 21, "scopes": ["source.abl", "keyword.other.abl"] }, // 'NO-LOCK'
105
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
106
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
107
- ],
108
- [
109
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
110
- ],
111
- [
112
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
113
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
114
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
115
- { "startIndex": 9, "endIndex": 24, "scopes": ["source.abl", "variable.other.abl"] }, // 'mg-g-account-no'
116
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
117
- { "startIndex": 25, "endIndex": 27, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '<>'
118
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl"] }, // ' '
119
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
120
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
121
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
122
- { "startIndex": 31, "endIndex": 34, "scopes": ["source.abl", "keyword.other.abl"] }, // 'AND'
123
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl"] }, // ' '
124
- { "startIndex": 35, "endIndex": 54, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'hist-trn.account-no'
125
- { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl"] }, // ' '
126
- { "startIndex": 55, "endIndex": 57, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '<>'
127
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl"] }, // ' '
128
- { "startIndex": 58, "endIndex": 73, "scopes": ["source.abl", "variable.other.abl"] }, // 'mc-g-account-no'
129
- { "startIndex": 73, "endIndex": 74, "scopes": ["source.abl"] }, // ' '
130
- { "startIndex": 74, "endIndex": 78, "scopes": ["source.abl", "keyword.other.abl"] }, // 'THEN'
131
- { "startIndex": 78, "endIndex": 79, "scopes": ["source.abl"] }, // ' '
132
- { "startIndex": 79, "endIndex": 83, "scopes": ["source.abl", "keyword.other.abl"] }, // 'NEXT'
133
- { "startIndex": 83, "endIndex": 84, "scopes": ["source.abl"] }, // ' '
134
- { "startIndex": 84, "endIndex": 94, "scopes": ["source.abl", "entity.name.label.abl"] }, // 'LOOP-TRADE'
135
- { "startIndex": 94, "endIndex": 95, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
136
- ],
137
- [
138
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
139
- ],
140
- [
141
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
142
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
143
- { "startIndex": 8, "endIndex": 30, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' Keep only redemption '
144
- { "startIndex": 30, "endIndex": 32, "scopes": ["source.abl", "comment.block.source.abl"] } // '*/'
145
- ],
146
- [
147
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
148
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
149
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
150
- { "startIndex": 9, "endIndex": 22, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'hist-trn.TYPE'
151
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
152
- { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '<>'
153
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
154
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
155
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'S'
156
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
157
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl"] }, // ' '
158
- { "startIndex": 30, "endIndex": 34, "scopes": ["source.abl", "keyword.other.abl"] }, // 'THEN'
159
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl"] }, // ' '
160
- { "startIndex": 35, "endIndex": 39, "scopes": ["source.abl", "keyword.other.abl"] }, // 'NEXT'
161
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl"] }, // ' '
162
- { "startIndex": 40, "endIndex": 50, "scopes": ["source.abl", "entity.name.label.abl"] }, // 'LOOP-TRADE'
163
- { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
164
- ],
165
- [
166
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
167
- ],
168
- [
169
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
170
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'IF'
171
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
172
- { "startIndex": 9, "endIndex": 15, "scopes": ["source.abl", "support.function.abl"] }, // 'LOOKUP'
173
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
174
- { "startIndex": 16, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'hist-trn.h-status'
175
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
176
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
177
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
178
- { "startIndex": 36, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'P,W,C'
179
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
180
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
181
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl"] }, // ' '
182
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
183
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
184
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '0'
185
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl"] }, // ' '
186
- { "startIndex": 48, "endIndex": 52, "scopes": ["source.abl", "keyword.other.abl"] }, // 'THEN'
187
- { "startIndex": 52, "endIndex": 53, "scopes": ["source.abl"] }, // ' '
188
- { "startIndex": 53, "endIndex": 57, "scopes": ["source.abl", "keyword.other.abl"] }, // 'NEXT'
189
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl"] }, // ' '
190
- { "startIndex": 58, "endIndex": 68, "scopes": ["source.abl", "entity.name.label.abl"] }, // 'LOOP-TRADE'
191
- { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
192
- ],
193
- [
194
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] }, // ' '
195
- { "startIndex": 1, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'END'
196
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
197
- ],
198
- [
199
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'END'
200
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
201
- ]
202
- ];
203
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
204
- })
@@ -1,144 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `copy-lob
6
- from respBuf
7
- starting at ( i + 4 )
8
- for x
9
- to result /* overlay at length( results ) + 1 */ no-convert
10
- no-error.`;
11
- let expectedTokens = [
12
- [
13
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] } // 'copy-lob'
14
- ],
15
- [
16
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
17
- { "startIndex": 2, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
18
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
19
- { "startIndex": 7, "endIndex": 14, "scopes": ["source.abl", "variable.other.abl"] } // 'respBuf'
20
- ],
21
- [
22
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
23
- { "startIndex": 2, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'starting'
24
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
25
- { "startIndex": 11, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'at'
26
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
27
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
28
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
29
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "variable.other.abl"] }, // 'i'
30
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
31
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '+'
32
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
33
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '4'
34
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
35
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
36
- ],
37
- [
38
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
39
- { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'for'
40
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
41
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "variable.other.abl"] } // 'x'
42
- ],
43
- [
44
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
45
- { "startIndex": 2, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'to'
46
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
47
- { "startIndex": 5, "endIndex": 11, "scopes": ["source.abl", "keyword.other.abl"] }, // 'result'
48
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
49
- { "startIndex": 12, "endIndex": 14, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
50
- { "startIndex": 14, "endIndex": 49, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' overlay at length( results ) + 1 '
51
- { "startIndex": 49, "endIndex": 51, "scopes": ["source.abl", "comment.block.source.abl"] }, // '*/'
52
- { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl"] }, // ' '
53
- { "startIndex": 52, "endIndex": 62, "scopes": ["source.abl", "keyword.other.abl"] } // 'no-convert'
54
- ],
55
- [
56
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'no-error'
57
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
58
- ]
59
- ];
60
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
61
- })
62
-
63
- describe('', () => {
64
- let statement = `copy-lob from respBuf starting at ( i + 4 ) for x to result /* overlay at length( results ) + 1 */ no-convert no-error.`;
65
- let expectedTokens = [
66
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'copy-lob'
67
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
68
- { "startIndex": 9, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
69
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
70
- { "startIndex": 14, "endIndex": 21, "scopes": ["source.abl", "variable.other.abl"] }, // 'respBuf'
71
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
72
- { "startIndex": 22, "endIndex": 30, "scopes": ["source.abl", "keyword.other.abl"] }, // 'starting'
73
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
74
- { "startIndex": 31, "endIndex": 33, "scopes": ["source.abl", "keyword.other.abl"] }, // 'at'
75
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
76
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
77
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl"] }, // ' '
78
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "variable.other.abl"] }, // 'i'
79
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl"] }, // ' '
80
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '+'
81
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl"] }, // ' '
82
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '4'
83
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl"] }, // ' '
84
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
85
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl"] }, // ' '
86
- { "startIndex": 44, "endIndex": 47, "scopes": ["source.abl", "keyword.other.abl"] }, // 'for'
87
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl"] }, // ' '
88
- { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "variable.other.abl"] }, // 'x'
89
- { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl"] }, // ' '
90
- { "startIndex": 50, "endIndex": 52, "scopes": ["source.abl", "keyword.other.abl"] }, // 'to'
91
- { "startIndex": 52, "endIndex": 53, "scopes": ["source.abl"] }, // ' '
92
- { "startIndex": 53, "endIndex": 59, "scopes": ["source.abl", "keyword.other.abl"] }, // 'result'
93
- { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl"] }, // ' '
94
- { "startIndex": 60, "endIndex": 62, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
95
- { "startIndex": 62, "endIndex": 97, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' overlay at length( results ) + 1 '
96
- { "startIndex": 97, "endIndex": 99, "scopes": ["source.abl", "comment.block.source.abl"] }, // '*/'
97
- { "startIndex": 99, "endIndex": 100, "scopes": ["source.abl"] }, // ' '
98
- { "startIndex": 100, "endIndex": 110, "scopes": ["source.abl", "keyword.other.abl"] }, // 'no-convert'
99
- { "startIndex": 110, "endIndex": 111, "scopes": ["source.abl"] }, // ' '
100
- { "startIndex": 111, "endIndex": 119, "scopes": ["source.abl", "keyword.other.abl"] }, // 'no-error'
101
- { "startIndex": 119, "endIndex": 120, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
102
- ];
103
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
104
- })
105
-
106
- describe('', () => {
107
- let statement = `copy-lob
108
- from respBuf
109
- starting at oSomething:Length
110
- to file "/path/to/file".`;
111
- let expectedTokens = [
112
- [
113
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'copy-lob'
114
- ],
115
- [
116
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
117
- { "startIndex": 2, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'from'
118
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
119
- { "startIndex": 7, "endIndex": 14, "scopes": ["source.abl", "variable.other.abl"] } // 'respBuf'
120
- ],
121
- [
122
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
123
- { "startIndex": 2, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'starting'
124
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl"] }, // ' '
125
- { "startIndex": 11, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'at'
126
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
127
- { "startIndex": 14, "endIndex": 24, "scopes": ["source.abl", "variable.other.abl"] }, // 'oSomething'
128
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
129
- { "startIndex": 25, "endIndex": 31, "scopes": ["source.abl", "entity.name.function.abl"] } // 'Length'
130
- ],
131
- [
132
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
133
- { "startIndex": 2, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'to'
134
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
135
- { "startIndex": 5, "endIndex": 9, "scopes": ["source.abl", "keyword.other.abl"] }, // 'file'
136
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl"] }, // ' '
137
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
138
- { "startIndex": 11, "endIndex": 24, "scopes": ["source.abl", "string.quoted.double.abl"] }, // '/path/to/file'
139
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
140
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
141
- ]
142
- ];
143
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
144
- })
@@ -1,20 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `assign defaultDomain = this-object:DefaultCookieDomain.`;
6
- let expectedTokens = [
7
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'assign'
8
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
9
- { "startIndex": 7, "endIndex": 20, "scopes": ["source.abl", "variable.other.abl"] }, // 'defaultDomain'
10
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
11
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
12
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
13
- { "startIndex": 23, "endIndex": 34, "scopes": ["source.abl", "variable.language.abl"] }, // 'this-object'
14
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
15
- { "startIndex": 35, "endIndex": 54, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'DefaultCookieDomain'
16
- { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
17
- ];
18
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
19
- })
20
-
@@ -1,65 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `// vProcedureHandle: entity.name.procedure.abl; meta.procedure.abl; source.abl
6
- // no-error: entity.name.procedure.abl; meta.procedure.abl; source.abl
7
- delete procedure vProcedureHandle no-error.`;
8
- let expectedTokens = [
9
- [
10
- { "startIndex": 0, "endIndex": 78, "scopes": ["source.abl", "comment.line.double-slash.abl"] } // '// vProcedureHandle: entity.name.procedure.abl; meta.procedure.abl; source.abl'
11
- ],
12
- [
13
- { "startIndex": 0, "endIndex": 70, "scopes": ["source.abl", "comment.line.double-slash.abl"] } // '// no-error: entity.name.procedure.abl; meta.procedure.abl; source.abl'
14
- ],
15
- [
16
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'delete'
17
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
18
- { "startIndex": 7, "endIndex": 16, "scopes": ["source.abl", "keyword.other.abl"] }, // 'procedure'
19
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
20
- { "startIndex": 17, "endIndex": 33, "scopes": ["source.abl", "variable.other.abl"] }, // 'vProcedureHandle'
21
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
22
- { "startIndex": 34, "endIndex": 42, "scopes": ["source.abl", "keyword.other.abl"] }, // 'no-error'
23
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
24
- ]
25
- ];
26
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
27
- })
28
-
29
- describe('', () => {
30
- let statement = `// vProcedureHandle: variable.other.abl; source.abl
31
- // no-error: keyword.other.abl; source.abl
32
- delete object vProcedureHandle no-error.`;
33
- let expectedTokens = [
34
- [
35
- { "startIndex": 0, "endIndex": 51, "scopes": ["source.abl", "comment.line.double-slash.abl"] } // '// vProcedureHandle: variable.other.abl; source.abl'
36
- ],
37
- [
38
- { "startIndex": 0, "endIndex": 42, "scopes": ["source.abl", "comment.line.double-slash.abl"] } // '// no-error: keyword.other.abl; source.abl'
39
- ],
40
- [
41
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'delete'
42
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
43
- { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'object'
44
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
45
- { "startIndex": 14, "endIndex": 30, "scopes": ["source.abl", "variable.other.abl"] }, // 'vProcedureHandle'
46
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
47
- { "startIndex": 31, "endIndex": 39, "scopes": ["source.abl", "keyword.other.abl"] }, // 'no-error'
48
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
49
- ]
50
- ];
51
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
52
- })
53
-
54
- describe('', () => {
55
- let statement = `delete WIDGET SELF.`;
56
- let expectedTokens = [
57
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'delete'
58
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
59
- { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'WIDGET'
60
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
61
- { "startIndex": 14, "endIndex": 18, "scopes": ["source.abl", "variable.language.abl"] }, // 'SELF'
62
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
63
- ];
64
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
65
- })