abl-tmlanguage 1.3.28 → 1.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +8 -9
  2. package/abl.tmLanguage.json +60 -79
  3. package/package.json +5 -2
  4. package/.github/workflows/ci.yml +0 -36
  5. package/CHANGELOG.md +0 -139
  6. package/abl-functions.txt +0 -548
  7. package/abl-keywords.txt +0 -416
  8. package/abl-methods.txt +0 -1053
  9. package/index.mjs +0 -508
  10. package/spec/analyze-suspend-resume/analyze-suspend-resume.spec.js +0 -17
  11. package/spec/annotations/annotation.spec.js +0 -366
  12. package/spec/array-extent/issue#5.spec.js +0 -26
  13. package/spec/blocks/block-labels.spec.js +0 -201
  14. package/spec/blocks/block-options.spec.js +0 -174
  15. package/spec/blocks/finally-blocks.spec.js +0 -90
  16. package/spec/blocks/on-quit.spec.js +0 -59
  17. package/spec/comments/comment-in-block-statement.spec.js +0 -153
  18. package/spec/comments/comment-in-for-each.spec.js +0 -105
  19. package/spec/comments/comment-in-function-args.spec.js +0 -88
  20. package/spec/comments/spacious-comment.spec.js +0 -73
  21. package/spec/comments/vscode-abl-issue#127.spec.js +0 -165
  22. package/spec/create-widgets/create-window.spec.js +0 -224
  23. package/spec/db-table-and-field/buffer-copy.spec.js +0 -246
  24. package/spec/db-table-and-field/create-alias.spec.js +0 -131
  25. package/spec/db-table-and-field/create-record.spec.js +0 -75
  26. package/spec/db-table-and-field/double-colon-access.spec.js +0 -154
  27. package/spec/db-table-and-field/field-in-function.spec.js +0 -58
  28. package/spec/db-table-and-field/fields-except.spec.js +0 -68
  29. package/spec/db-table-and-field/find-record.spec.js +0 -158
  30. package/spec/db-table-and-field/foreach.spec.js +0 -588
  31. package/spec/db-table-and-field/issue#88.spec.js +0 -121
  32. package/spec/db-table-and-field/new-record.spec.js +0 -250
  33. package/spec/db-table-and-field/query-get.spec.js +0 -137
  34. package/spec/define/define-browse.spec.js +0 -454
  35. package/spec/define/define-button.spec.js +0 -233
  36. package/spec/define/define-query.spec.js +0 -144
  37. package/spec/define/define-rectangle.spec.js +0 -47
  38. package/spec/define-buffer/create-buffer.spec.js +0 -212
  39. package/spec/define-buffer/simple-single-line.spec.js +0 -155
  40. package/spec/define-enum/type-name.spec.js +0 -200
  41. package/spec/define-event/simple-single-line.spec.js +0 -61
  42. package/spec/define-frame/issue#173.spec.js +0 -580
  43. package/spec/define-parameter/simple-single-line.spec.js +0 -228
  44. package/spec/define-property/property-getter.spec.js +0 -70
  45. package/spec/define-stream/simple-single-line.spec.js +0 -42
  46. package/spec/define-temp-table/define-dataset.spec.js +0 -217
  47. package/spec/define-temp-table/define-temp-table.spec.js +0 -605
  48. package/spec/define-variable/define-like.spec.js +0 -78
  49. package/spec/define-variable/extent.spec.js +0 -778
  50. package/spec/define-variable/initial.spec.js +0 -126
  51. package/spec/define-variable/issue#6.spec.js +0 -280
  52. package/spec/define-variable/issue#9.spec.js +0 -45
  53. package/spec/define-variable/simple-single-line.spec.js +0 -181
  54. package/spec/define-variable/single-line-with-a-comment-at-the-end.spec.js +0 -62
  55. package/spec/define-variable/single-line-with-a-space-and-a-comment-at-the-end.spec.js +0 -65
  56. package/spec/define-variable/tm-issue#2.spec.js +0 -25
  57. package/spec/define-variable/var-statement.spec.js +0 -467
  58. package/spec/do/do-blocks.spec.js +0 -289
  59. package/spec/do/issue#3.spec.js +0 -83
  60. package/spec/do/stop-after.spec.js +0 -79
  61. package/spec/for-each/for-each.spec.js +0 -111
  62. package/spec/for-each/issue#321.spec.js +0 -116
  63. package/spec/for-each/vscode-abl.issue#166.spec.js +0 -83
  64. package/spec/function-call/can-find.spec.js +0 -239
  65. package/spec/function-call/include-in-argument.spec.js +0 -120
  66. package/spec/function-call/misc-abl-functions.spec.js +0 -59
  67. package/spec/function-call/nested-functions.spec.js +0 -245
  68. package/spec/function-call/pass-table.spec.js +0 -116
  69. package/spec/function-call/set-size.spec.js +0 -56
  70. package/spec/function-call/udf-calls.spec.js +0 -50
  71. package/spec/function-call/vscode-abl-issue#19.spec.js +0 -129
  72. package/spec/function-definition/vscode-abl-issue#166.spec.js +0 -446
  73. package/spec/global-scoped-define/global-define.spec.js +0 -64
  74. package/spec/global-scoped-define/scoped-define-with-procedure-keyword.spec.js +0 -70
  75. package/spec/global-scoped-define/undefine.spec.js +0 -44
  76. package/spec/include/abl-tmlanguage-issues#5.spec.js +0 -40
  77. package/spec/include/include-file-name.spec.js +0 -267
  78. package/spec/include/unnamed-arguments.spec.js +0 -38
  79. package/spec/include/vscode-abl-issue#45.spec.js +0 -20
  80. package/spec/include/vscode-abl-issue#77.spec.js +0 -128
  81. package/spec/include/vscode-abl-issue#80.spec.js +0 -50
  82. package/spec/input-output/input-from.spec.js +0 -504
  83. package/spec/input-output/output-to.spec.js +0 -456
  84. package/spec/method-attribute-property-call/abl-method-attribute-call.spec.js +0 -98
  85. package/spec/method-attribute-property-call/connected-method.spec.js +0 -29
  86. package/spec/method-attribute-property-call/datset-table-attribute-method-call.spec.js +0 -53
  87. package/spec/method-attribute-property-call/get-set-method-name.spec.js +0 -140
  88. package/spec/method-attribute-property-call/method-call.spec.js +0 -268
  89. package/spec/method-attribute-property-call/nested-property-call.spec.js +0 -18
  90. package/spec/method-attribute-property-call/unqualified-method-call.spec.js +0 -41
  91. package/spec/method-definition/constructor.spec.js +0 -174
  92. package/spec/method-definition/method.spec.js +0 -541
  93. package/spec/misc-statements/array-for.spec.js +0 -21
  94. package/spec/misc-statements/case-statement.spec.js +0 -96
  95. package/spec/misc-statements/class-in-var-name.spec.js +0 -204
  96. package/spec/misc-statements/copy-lob.spec.js +0 -144
  97. package/spec/misc-statements/def-in-name.spec.js +0 -20
  98. package/spec/misc-statements/delete-objects.spec.js +0 -65
  99. package/spec/misc-statements/do-in-name.spec.js +0 -259
  100. package/spec/misc-statements/event-subscribe.spec.js +0 -308
  101. package/spec/misc-statements/export-delimiter.spec.js +0 -37
  102. package/spec/misc-statements/guid.spec.js +0 -97
  103. package/spec/misc-statements/if-then.spec.js +0 -454
  104. package/spec/misc-statements/issue#173.spec.js +0 -99
  105. package/spec/misc-statements/message-statement.spec.js +0 -21
  106. package/spec/misc-statements/record-buffer-functions.spec.js +0 -73
  107. package/spec/misc-statements/release.spec.js +0 -41
  108. package/spec/misc-statements/return-statement.spec.js +0 -64
  109. package/spec/misc-statements/skip-statement-and-fuction.spec.js +0 -35
  110. package/spec/misc-statements/system-handles.spec.js +0 -122
  111. package/spec/numbers/scientific-notation.spec.js +0 -212
  112. package/spec/operators/operators.spec.js +0 -149
  113. package/spec/operators/safe-navigation-operator.spec.js +0 -246
  114. package/spec/preprocesors/issue166.spec.js +0 -91
  115. package/spec/preprocesors/preprocessor-functions.spec.js +0 -77
  116. package/spec/preprocesors/proparse-preprocessor.spec.js +0 -90
  117. package/spec/procedure-definition/empty-proc.spec.js +0 -134
  118. package/spec/procedure-definition/trigger-procedure.spec.js +0 -132
  119. package/spec/procedure-definition/vscode-abl-issue#22.spec.js +0 -46
  120. package/spec/procedure-definition/vscode-abl-issue#26.spec.js +0 -31
  121. package/spec/procedure-definition/vscode-abl-issue#325.spec.js +0 -88
  122. package/spec/procedure-definition/vscode-abl-issue#62.spec.js +0 -39
  123. package/spec/run-statement/run-statement.spec.js +0 -868
  124. package/spec/shared.js +0 -104
  125. package/spec/strings/translation-attribute.spec.js +0 -52
  126. package/spec/strings/vscode-abl-issue#11.spec.js +0 -56
  127. package/spec/strings/vscode-abl-issue#28.spec.js +0 -31
  128. package/spec/type-name/argument.spec.js +0 -206
  129. package/spec/type-name/cast.spec.js +0 -163
  130. package/spec/type-name/define-class.spec.js +0 -555
  131. package/spec/type-name/define-enum.spec.js +0 -44
  132. package/spec/type-name/define-interface.spec.js +0 -159
  133. package/spec/type-name/define-property.spec.js +0 -301
  134. package/spec/type-name/define-temp-table.spec.js +0 -434
  135. package/spec/type-name/define-type-spec.js +0 -435
  136. package/spec/type-name/define-variable-property.spec.js +0 -264
  137. package/spec/type-name/define-variable.spec.js +0 -386
  138. package/spec/type-name/get-class.spec.js +0 -91
  139. package/spec/type-name/new.spec.js +0 -185
  140. package/spec/type-name/parameter-as.spec.js +0 -978
  141. package/spec/type-name/type-name.spec.js +0 -880
  142. package/spec/type-name/using.spec.js +0 -160
@@ -1,259 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `assign Domain = 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": 13, "scopes": ["source.abl", "variable.other.abl"] }, // 'Domain'
10
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
11
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
12
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
13
- { "startIndex": 16, "endIndex": 27, "scopes": ["source.abl", "variable.language.abl"] }, // 'this-object'
14
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
15
- { "startIndex": 28, "endIndex": 47, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'DefaultCookieDomain'
16
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
17
- ];
18
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
19
- })
20
-
21
- describe('', () => {
22
- let statement = `assign repeatTheAction = (if true then false else true)
23
- lowerMyExpecations = "40%"
24
- catchMeIf = youCan
25
- forTunately = thisWorks:Today()
26
-
27
- // this class
28
- finallyItsDone = true
29
- abstractRepresentations = Arehard(true).
30
- staticCodeIs("all the rage")
31
- .`;
32
- let expectedTokens = [
33
- [
34
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'assign'
35
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
36
- { "startIndex": 7, "endIndex": 22, "scopes": ["source.abl", "variable.other.abl"] }, // 'repeatTheAction'
37
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
38
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
39
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
40
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
41
- { "startIndex": 26, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'if'
42
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
43
- { "startIndex": 29, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.language.abl"] }, // 'true'
44
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
45
- { "startIndex": 34, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'then'
46
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
47
- { "startIndex": 39, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.language.abl"] }, // 'false'
48
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
49
- { "startIndex": 45, "endIndex": 49, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'else'
50
- { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
51
- { "startIndex": 50, "endIndex": 54, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.language.abl"] }, // 'true'
52
- { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
53
- ],
54
- [
55
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
56
- { "startIndex": 7, "endIndex": 25, "scopes": ["source.abl", "variable.other.abl"] }, // 'lowerMyExpecations'
57
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
58
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
59
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl"] }, // ' '
60
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
61
- { "startIndex": 29, "endIndex": 32, "scopes": ["source.abl", "string.quoted.double.abl"] }, // '40%'
62
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] } // '"'
63
- ],
64
- [
65
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
66
- { "startIndex": 7, "endIndex": 16, "scopes": ["source.abl", "variable.other.abl"] }, // 'catchMeIf'
67
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
68
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
69
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
70
- { "startIndex": 19, "endIndex": 25, "scopes": ["source.abl", "variable.other.abl"] } // 'youCan'
71
- ],
72
- [
73
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
74
- { "startIndex": 7, "endIndex": 18, "scopes": ["source.abl", "variable.other.abl"] }, // 'forTunately'
75
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
76
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
77
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
78
- { "startIndex": 21, "endIndex": 30, "scopes": ["source.abl", "variable.other.abl"] }, // 'thisWorks'
79
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
80
- { "startIndex": 31, "endIndex": 36, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Today'
81
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
82
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
83
- ],
84
- [
85
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
86
- ],
87
- [
88
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
89
- { "startIndex": 7, "endIndex": 20, "scopes": ["source.abl", "comment.line.double-slash.abl"] } // '// this class'
90
- ],
91
- [
92
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
93
- { "startIndex": 7, "endIndex": 21, "scopes": ["source.abl", "variable.other.abl"] }, // 'finallyItsDone'
94
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl"] }, // ' '
95
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
96
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl"] }, // ' '
97
- { "startIndex": 24, "endIndex": 28, "scopes": ["source.abl", "constant.language.abl"] } // 'true'
98
- ],
99
- [
100
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
101
- { "startIndex": 7, "endIndex": 30, "scopes": ["source.abl", "variable.other.abl"] }, // 'abstractRepresentations'
102
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
103
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
104
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl"] }, // ' '
105
- { "startIndex": 33, "endIndex": 40, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Arehard'
106
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
107
- { "startIndex": 41, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.language.abl"] }, // 'true'
108
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
109
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
110
- ],
111
- [
112
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
113
- { "startIndex": 7, "endIndex": 19, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'staticCodeIs'
114
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
115
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
116
- { "startIndex": 21, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'all the rage'
117
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
118
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
119
- ],
120
- [
121
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
122
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
123
- ]
124
- ];
125
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
126
- })
127
-
128
- describe('', () => {
129
- let statement = `CASE action:
130
- WHEN "edition" THEN
131
- DO:
132
- ASSIGN
133
- produit = getChamp("produit")
134
- document = getChamp("document")
135
- printerName = getChamp("printerName").
136
-
137
- RUN pi_edition.
138
-
139
- setChamp("produit", produit + string(0x3)).
140
-
141
- END.
142
- END CASE. `;
143
- let expectedTokens = [
144
- [
145
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] }, // 'CASE'
146
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl"] }, // ' '
147
- { "startIndex": 5, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'action'
148
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
149
- ],
150
- [
151
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
152
- { "startIndex": 2, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'WHEN'
153
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
154
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
155
- { "startIndex": 8, "endIndex": 15, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'edition'
156
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
157
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
158
- { "startIndex": 17, "endIndex": 21, "scopes": ["source.abl", "keyword.other.abl"] } // 'THEN'
159
- ],
160
- [
161
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.block.abl"] }, // ' '
162
- { "startIndex": 2, "endIndex": 4, "scopes": ["source.abl", "meta.block.abl", "keyword.other.abl"] }, // 'DO'
163
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
164
- ],
165
- [
166
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
167
- { "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] } // 'ASSIGN'
168
- ],
169
- [
170
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
171
- { "startIndex": 6, "endIndex": 13, "scopes": ["source.abl", "variable.other.abl"] }, // 'produit'
172
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
173
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
174
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
175
- { "startIndex": 16, "endIndex": 24, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'getChamp'
176
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
177
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
178
- { "startIndex": 26, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'produit'
179
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
180
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
181
- ],
182
- [
183
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
184
- { "startIndex": 6, "endIndex": 14, "scopes": ["source.abl", "variable.other.abl"] }, // 'document'
185
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
186
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
187
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
188
- { "startIndex": 17, "endIndex": 25, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'getChamp'
189
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
190
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
191
- { "startIndex": 27, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'document'
192
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
193
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.brace.round.js"] } // ')'
194
- ],
195
- [
196
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl"] }, // ' '
197
- { "startIndex": 6, "endIndex": 17, "scopes": ["source.abl", "variable.other.abl"] }, // 'printerName'
198
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
199
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
200
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
201
- { "startIndex": 20, "endIndex": 28, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'getChamp'
202
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
203
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
204
- { "startIndex": 30, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'printerName'
205
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
206
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
207
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
208
- ],
209
- [
210
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
211
- ],
212
- [
213
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
214
- { "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "keyword.other.abl"] }, // 'RUN'
215
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
216
- { "startIndex": 8, "endIndex": 18, "scopes": ["source.abl", "entity.name.procedure.abl"] }, // 'pi_edition'
217
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
218
- ],
219
- [
220
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
221
- ],
222
- [
223
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
224
- { "startIndex": 4, "endIndex": 12, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'setChamp'
225
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
226
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
227
- { "startIndex": 14, "endIndex": 21, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'produit'
228
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
229
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
230
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
231
- { "startIndex": 24, "endIndex": 31, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'produit'
232
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
233
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.operator.source.abl"] }, // '+'
234
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
235
- { "startIndex": 34, "endIndex": 40, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'string'
236
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
237
- { "startIndex": 41, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '0x3'
238
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // ')'
239
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
240
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
241
- ],
242
- [
243
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
244
- ],
245
- [
246
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
247
- { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "keyword.other.abl"] }, // 'END'
248
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
249
- ],
250
- [
251
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'END'
252
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
253
- { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'CASE'
254
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "punctuation.terminator.abl"] }, // '.'
255
- { "startIndex": 9, "endIndex": 12, "scopes": ["source.abl"] } // ' '
256
- ]
257
- ];
258
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
259
- })
@@ -1,308 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `method public void AMethod():
6
- oController:NewEventName:Subscribe(NewEventNameHandler).
7
- end method.`;
8
- let expectedTokens = [
9
- [
10
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'method'
11
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
12
- { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'public'
13
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
14
- { "startIndex": 14, "endIndex": 18, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'void'
15
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
16
- { "startIndex": 19, "endIndex": 26, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.function.abl"] }, // 'AMethod'
17
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // '('
18
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
19
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
20
- ],
21
- [
22
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
23
- { "startIndex": 2, "endIndex": 13, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
24
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
25
- { "startIndex": 14, "endIndex": 26, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewEventName'
26
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
27
- { "startIndex": 27, "endIndex": 36, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Subscribe'
28
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
29
- { "startIndex": 37, "endIndex": 56, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewEventNameHandler'
30
- { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
31
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
32
- ],
33
- [
34
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
35
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
36
- { "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'method'
37
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
38
- ]
39
- ];
40
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
41
- })
42
-
43
- describe('', () => {
44
- let statement = `oController:NewTempTableAdded:Subscribe(hProc , ipName).`;
45
- let expectedTokens = [
46
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
47
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
48
- { "startIndex": 12, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
49
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
50
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Subscribe'
51
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
52
- { "startIndex": 40, "endIndex": 45, "scopes": ["source.abl", "variable.other.abl"] }, // 'hProc'
53
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
54
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
55
- { "startIndex": 47, "endIndex": 49, "scopes": ["source.abl"] }, // ' '
56
- { "startIndex": 49, "endIndex": 55, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'ipName'
57
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
58
- { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
59
- ];
60
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
61
- })
62
-
63
- describe('', () => {
64
- let statement = `oController:NewTempTableAdded:Subscribe(hProc , "ipName").`;
65
- let expectedTokens = [
66
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
67
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
68
- { "startIndex": 12, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
69
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
70
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Subscribe'
71
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
72
- { "startIndex": 40, "endIndex": 45, "scopes": ["source.abl", "variable.other.abl"] }, // 'hProc'
73
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
74
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
75
- { "startIndex": 47, "endIndex": 49, "scopes": ["source.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
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
80
- { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
81
- ];
82
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
83
- })
84
-
85
- describe('', () => {
86
- let statement = `oController:NewTempTableAdded:Subscribe(NewTempTableAddedHandler).`;
87
- let expectedTokens = [
88
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
89
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
90
- { "startIndex": 12, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
91
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
92
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Subscribe'
93
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
94
- { "startIndex": 40, "endIndex": 64, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAddedHandler'
95
- { "startIndex": 64, "endIndex": 65, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
96
- { "startIndex": 65, "endIndex": 66, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
97
- ];
98
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
99
- })
100
-
101
- describe('', () => {
102
- let statement = `oController:NewTempTableAdded:Subscribe('NewTempTableAddedHandler':u ).`;
103
- let expectedTokens = [
104
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
105
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
106
- { "startIndex": 12, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
107
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
108
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Subscribe'
109
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
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
- { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl"] }, // ' '
115
- { "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
116
- { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
117
- ];
118
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
119
- })
120
-
121
- describe('', () => {
122
- let statement = `oController:NewTempTableAdded:Subscribe(objRef:NewTempTableAddedHandler).`;
123
- let expectedTokens = [
124
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
125
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
126
- { "startIndex": 12, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
127
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
128
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Subscribe'
129
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
130
- { "startIndex": 40, "endIndex": 46, "scopes": ["source.abl", "variable.other.abl"] }, // 'objRef'
131
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
132
- { "startIndex": 47, "endIndex": 71, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAddedHandler'
133
- { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
134
- { "startIndex": 72, "endIndex": 73, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
135
- ];
136
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
137
- })
138
-
139
- describe('', () => {
140
- let statement = `oRef:NewTempTableAdded:Subscribe(Package.Sub.Class:NewTempTableAddedHandler).`;
141
- let expectedTokens = [
142
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "variable.other.abl"] }, // 'oRef'
143
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
144
- { "startIndex": 5, "endIndex": 22, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
145
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
146
- { "startIndex": 23, "endIndex": 32, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Subscribe'
147
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
148
- { "startIndex": 33, "endIndex": 50, "scopes": ["source.abl", "entity.name.type.abl"] }, // 'Package.Sub.Class'
149
- { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
150
- { "startIndex": 51, "endIndex": 75, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAddedHandler'
151
- { "startIndex": 75, "endIndex": 76, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
152
- { "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
153
- ];
154
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
155
- })
156
-
157
- describe('', () => {
158
- let statement = `method public void AMethod():
159
- oController:NewEventName:UnSubscribe(NewEventNameHandler).
160
- end method.`;
161
- let expectedTokens = [
162
- [
163
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'method'
164
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
165
- { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'public'
166
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
167
- { "startIndex": 14, "endIndex": 18, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'void'
168
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
169
- { "startIndex": 19, "endIndex": 26, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.function.abl"] }, // 'AMethod'
170
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // '('
171
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
172
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
173
- ],
174
- [
175
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
176
- { "startIndex": 2, "endIndex": 13, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
177
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
178
- { "startIndex": 14, "endIndex": 26, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewEventName'
179
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
180
- { "startIndex": 27, "endIndex": 38, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'UnSubscribe'
181
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
182
- { "startIndex": 39, "endIndex": 58, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewEventNameHandler'
183
- { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
184
- { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
185
- ],
186
- [
187
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
188
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
189
- { "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'method'
190
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
191
- ]
192
- ];
193
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
194
- })
195
-
196
- describe('', () => {
197
- let statement = `oController:NewTempTableAdded:Unsubscribe(hProc , ipName).`;
198
- let expectedTokens = [
199
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
200
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
201
- { "startIndex": 12, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
202
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
203
- { "startIndex": 30, "endIndex": 41, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Unsubscribe'
204
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
205
- { "startIndex": 42, "endIndex": 47, "scopes": ["source.abl", "variable.other.abl"] }, // 'hProc'
206
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl"] }, // ' '
207
- { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
208
- { "startIndex": 49, "endIndex": 51, "scopes": ["source.abl"] }, // ' '
209
- { "startIndex": 51, "endIndex": 57, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'ipName'
210
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
211
- { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
212
- ];
213
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
214
- })
215
-
216
- describe('', () => {
217
- let statement = `oController:NewTempTableAdded:Unsubscribe(hProc , "ipName").`;
218
- let expectedTokens = [
219
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
220
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
221
- { "startIndex": 12, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
222
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
223
- { "startIndex": 30, "endIndex": 41, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Unsubscribe'
224
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
225
- { "startIndex": 42, "endIndex": 47, "scopes": ["source.abl", "variable.other.abl"] }, // 'hProc'
226
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl"] }, // ' '
227
- { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
228
- { "startIndex": 49, "endIndex": 51, "scopes": ["source.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
- { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
233
- { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
234
- ];
235
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
236
- })
237
-
238
- describe('', () => {
239
- let statement = `oController:NewTempTableAdded:Unsubscribe(NewTempTableAddedHandler).`;
240
- let expectedTokens = [
241
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
242
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
243
- { "startIndex": 12, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
244
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
245
- { "startIndex": 30, "endIndex": 41, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Unsubscribe'
246
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
247
- { "startIndex": 42, "endIndex": 66, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAddedHandler'
248
- { "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
249
- { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
250
- ];
251
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
252
- })
253
-
254
- describe('', () => {
255
- let statement = `oController:NewTempTableAdded:Unsubscribe('NewTempTableAddedHandler':u ).`;
256
- let expectedTokens = [
257
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
258
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
259
- { "startIndex": 12, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
260
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
261
- { "startIndex": 30, "endIndex": 41, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Unsubscribe'
262
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
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
- { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl"] }, // ' '
268
- { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
269
- { "startIndex": 72, "endIndex": 73, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
270
- ];
271
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
272
- })
273
-
274
- describe('', () => {
275
- let statement = `oController:NewTempTableAdded:Unsubscribe(objRef:NewTempTableAddedHandler).`;
276
- let expectedTokens = [
277
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "variable.other.abl"] }, // 'oController'
278
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
279
- { "startIndex": 12, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
280
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
281
- { "startIndex": 30, "endIndex": 41, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Unsubscribe'
282
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
283
- { "startIndex": 42, "endIndex": 48, "scopes": ["source.abl", "variable.other.abl"] }, // 'objRef'
284
- { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
285
- { "startIndex": 49, "endIndex": 73, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAddedHandler'
286
- { "startIndex": 73, "endIndex": 74, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
287
- { "startIndex": 74, "endIndex": 75, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
288
- ];
289
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
290
- })
291
-
292
- describe('', () => {
293
- let statement = `oRef:NewTempTableAdded:Unsubscribe(Package.Sub.Class:NewTempTableAddedHandler).`;
294
- let expectedTokens = [
295
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "variable.other.abl"] }, // 'oRef'
296
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
297
- { "startIndex": 5, "endIndex": 22, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAdded'
298
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
299
- { "startIndex": 23, "endIndex": 34, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Unsubscribe'
300
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
301
- { "startIndex": 35, "endIndex": 52, "scopes": ["source.abl", "entity.name.type.abl"] }, // 'Package.Sub.Class'
302
- { "startIndex": 52, "endIndex": 53, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
303
- { "startIndex": 53, "endIndex": 77, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'NewTempTableAddedHandler'
304
- { "startIndex": 77, "endIndex": 78, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
305
- { "startIndex": 78, "endIndex": 79, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
306
- ];
307
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
308
- })