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,467 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `var longchar[] names.`;
6
- let expectedTokens = [
7
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
8
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
9
- { "startIndex": 4, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'longchar'
10
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
11
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
12
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
13
- { "startIndex": 15, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'names'
14
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
15
- ]
16
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
17
- })
18
-
19
- describe('', () => {
20
- let statement = `var integer cnt, loop.`;
21
- let expectedTokens = [
22
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
23
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
24
- { "startIndex": 4, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'integer'
25
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
26
- { "startIndex": 12, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'cnt'
27
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
28
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
29
- { "startIndex": 17, "endIndex": 21, "scopes": ["source.abl", "variable.other.abl"] }, // 'loop'
30
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
31
- ]
32
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
33
- })
34
-
35
- describe('', () => {
36
- let statement = `var Property prop.`;
37
- let expectedTokens = [
38
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
39
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
40
- { "startIndex": 4, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'Property'
41
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
42
- { "startIndex": 13, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'prop'
43
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
44
- ]
45
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
46
- })
47
-
48
- describe('', () => {
49
- let statement = `var character propName.`;
50
- let expectedTokens = [
51
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
52
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
53
- { "startIndex": 4, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'character'
54
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
55
- { "startIndex": 14, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'propName'
56
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
57
- ]
58
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
59
- })
60
-
61
- describe('', () => {
62
- let statement = `var character[] chrArray.`;
63
- let expectedTokens = [
64
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
65
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
66
- { "startIndex": 4, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'character'
67
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
68
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
69
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
70
- { "startIndex": 16, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'chrArray'
71
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
72
- ]
73
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
74
- })
75
-
76
- describe('', () => {
77
- let statement = `var JsonArray ja.`;
78
- let expectedTokens = [
79
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
80
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
81
- { "startIndex": 4, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'JsonArray'
82
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
83
- { "startIndex": 14, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'ja'
84
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
85
- ]
86
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
87
- })
88
-
89
- describe('', () => {
90
- let statement = `var class JsonArray ja.`;
91
- let expectedTokens = [
92
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
93
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
94
- { "startIndex": 4, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'class'
95
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
96
- { "startIndex": 10, "endIndex": 19, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'JsonArray'
97
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
98
- { "startIndex": 20, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'ja'
99
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
100
- ]
101
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
102
- })
103
-
104
- describe('', () => {
105
- let statement = `var IPrimitiveHolder[4] ph.`;
106
- let expectedTokens = [
107
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
108
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
109
- { "startIndex": 4, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'IPrimitiveHolder'
110
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
111
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "constant.numeric.source.abl"] }, // '4'
112
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
113
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
114
- { "startIndex": 24, "endIndex": 26, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'ph'
115
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
116
- ]
117
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
118
- })
119
-
120
- describe('', () => {
121
- let statement = `var int i.`;
122
- let expectedTokens = [
123
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
124
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
125
- { "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'int'
126
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
127
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'i'
128
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
129
- ]
130
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
131
- })
132
-
133
- describe('', () => {
134
- let statement = `var Object c.`;
135
- let expectedTokens = [
136
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
137
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
138
- { "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'Object'
139
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
140
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'c'
141
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
142
- ]
143
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
144
- })
145
-
146
- describe('', () => {
147
- let statement = `var static longchar[] names.`;
148
- let expectedTokens = [
149
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
150
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
151
- { "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'static'
152
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
153
- { "startIndex": 11, "endIndex": 19, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'longchar'
154
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
155
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
156
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
157
- { "startIndex": 22, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'names'
158
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
159
- ]
160
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
161
- })
162
-
163
- describe('', () => {
164
- let statement = `var package-protected int64 names.`;
165
- let expectedTokens = [
166
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
167
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
168
- { "startIndex": 4, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'package-protected'
169
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
170
- { "startIndex": 22, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'int64'
171
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
172
- { "startIndex": 28, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'names'
173
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
174
- ]
175
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
176
- })
177
-
178
- describe('', () => {
179
- let statement = `var public static datetime dtz1 = now`;
180
- let expectedTokens = [
181
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
182
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
183
- { "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'public'
184
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
185
- { "startIndex": 11, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'static'
186
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
187
- { "startIndex": 18, "endIndex": 26, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'datetime'
188
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
189
- { "startIndex": 27, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'dtz1'
190
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
191
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
192
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
193
- { "startIndex": 34, "endIndex": 37, "scopes": ["source.abl", "support.function.abl"] } // 'now'
194
- ]
195
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
196
- })
197
-
198
- describe('', () => {
199
- let statement = `var public static datetime dtz1 = now, dtz2 = add-interval(now, 12, 'milliseconds').`;
200
- let expectedTokens = [
201
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
202
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
203
- { "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'public'
204
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
205
- { "startIndex": 11, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'static'
206
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
207
- { "startIndex": 18, "endIndex": 26, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'datetime'
208
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
209
- { "startIndex": 27, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'dtz1'
210
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
211
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
212
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
213
- { "startIndex": 34, "endIndex": 37, "scopes": ["source.abl", "support.function.abl"] }, // 'now'
214
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
215
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl"] }, // ' '
216
- { "startIndex": 39, "endIndex": 43, "scopes": ["source.abl", "variable.other.abl"] }, // 'dtz2'
217
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl"] }, // ' '
218
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
219
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl"] }, // ' '
220
- { "startIndex": 46, "endIndex": 58, "scopes": ["source.abl", "support.function.abl"] }, // 'add-interval'
221
- { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
222
- { "startIndex": 59, "endIndex": 62, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'now'
223
- { "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
224
- { "startIndex": 63, "endIndex": 64, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
225
- { "startIndex": 64, "endIndex": 66, "scopes": ["source.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '12'
226
- { "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
227
- { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
228
- { "startIndex": 68, "endIndex": 69, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
229
- { "startIndex": 69, "endIndex": 81, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.single.abl"] }, // 'milliseconds'
230
- { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
231
- { "startIndex": 82, "endIndex": 83, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
232
- { "startIndex": 83, "endIndex": 84, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
233
- ]
234
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
235
- })
236
-
237
- describe('', () => {
238
- let statement = `var public /*must be public*/ static datetime[{&MAX-SIZE}] dtz1 = now`;
239
- let expectedTokens = [
240
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
241
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
242
- { "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'public'
243
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
244
- { "startIndex": 11, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "comment.block.source.abl"] }, // '/*'
245
- { "startIndex": 13, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "comment.block.source.abl", "comment"] }, // 'must be public'
246
- { "startIndex": 27, "endIndex": 29, "scopes": ["source.abl", "meta.define.abl", "comment.block.source.abl"] }, // '*/'
247
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
248
- { "startIndex": 30, "endIndex": 36, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'static'
249
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl"] }, // ' '
250
- { "startIndex": 37, "endIndex": 45, "scopes": ["source.abl", "storage.type.abl"] }, // 'datetime'
251
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
252
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.array.literal.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '{'
253
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.array.literal.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
254
- { "startIndex": 48, "endIndex": 56, "scopes": ["source.abl", "meta.array.literal.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'MAX-SIZE'
255
- { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.array.literal.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '}'
256
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
257
- { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl"] }, // ' '
258
- { "startIndex": 59, "endIndex": 63, "scopes": ["source.abl", "variable.other.abl"] }, // 'dtz1'
259
- { "startIndex": 63, "endIndex": 64, "scopes": ["source.abl"] }, // ' '
260
- { "startIndex": 64, "endIndex": 65, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
261
- { "startIndex": 65, "endIndex": 66, "scopes": ["source.abl"] }, // ' '
262
- { "startIndex": 66, "endIndex": 69, "scopes": ["source.abl", "support.function.abl"] } // 'now'
263
- ]
264
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
265
- })
266
-
267
- describe('', () => {
268
- let statement = ` var Progress.Collections.IIterator<KeyValuePair<Object, Object>> iter.
269
- var ISet mapKeys = new Set().`;
270
- let expectedTokens = [
271
- [
272
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
273
- { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
274
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
275
- { "startIndex": 12, "endIndex": 42, "scopes": ["source.abl", "meta.define.abl", "meta.generic.abl", "entity.name.type.abl"] }, // 'Progress.Collections.IIterator'
276
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.define.abl", "meta.generic.abl", "punctuation.definition.generic.begin.abl"] }, // '<'
277
- { "startIndex": 43, "endIndex": 55, "scopes": ["source.abl", "meta.define.abl", "meta.generic.abl", "meta.generic.abl", "entity.name.type.abl"] }, // 'KeyValuePair'
278
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.define.abl", "meta.generic.abl", "meta.generic.abl", "punctuation.definition.generic.begin.abl"] }, // '<'
279
- { "startIndex": 56, "endIndex": 62, "scopes": ["source.abl", "meta.define.abl", "meta.generic.abl", "meta.generic.abl", "entity.name.type.abl"] }, // 'Object'
280
- { "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "meta.define.abl", "meta.generic.abl", "meta.generic.abl", "punctuation.separator.comma.abl"] }, // ','
281
- { "startIndex": 63, "endIndex": 64, "scopes": ["source.abl", "meta.define.abl", "meta.generic.abl", "meta.generic.abl"] }, // ' '
282
- { "startIndex": 64, "endIndex": 70, "scopes": ["source.abl", "meta.define.abl", "meta.generic.abl", "meta.generic.abl", "entity.name.type.abl"] }, // 'Object'
283
- { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "meta.define.abl", "meta.generic.abl", "meta.generic.abl", "punctuation.definition.generic.end.abl"] }, // '>'
284
- { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.define.abl", "meta.generic.abl", "punctuation.definition.generic.end.abl"] }, // '>'
285
- { "startIndex": 72, "endIndex": 73, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
286
- { "startIndex": 73, "endIndex": 77, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'iter'
287
- { "startIndex": 77, "endIndex": 78, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
288
- ],
289
- [
290
- { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
291
- { "startIndex": 8, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
292
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
293
- { "startIndex": 12, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'ISet'
294
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
295
- { "startIndex": 17, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'mapKeys'
296
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl"] }, // ' '
297
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
298
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl"] }, // ' '
299
- { "startIndex": 27, "endIndex": 30, "scopes": ["source.abl", "support.function.abl"] }, // 'new'
300
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl"] }, // ' '
301
- { "startIndex": 31, "endIndex": 34, "scopes": ["source.abl", "entity.name.type.abl"] }, // 'Set'
302
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
303
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
304
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
305
- ]
306
- ]
307
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
308
- })
309
-
310
- describe('', () => {
311
- let statement = `var integer loop, cnt, idx = mBackingList:IndexOf(pItem).`;
312
- let expectedTokens = [
313
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
314
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
315
- { "startIndex": 4, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'integer'
316
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
317
- { "startIndex": 12, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'loop'
318
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
319
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
320
- { "startIndex": 18, "endIndex": 21, "scopes": ["source.abl", "variable.other.abl"] }, // 'cnt'
321
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
322
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
323
- { "startIndex": 23, "endIndex": 26, "scopes": ["source.abl", "variable.other.abl"] }, // 'idx'
324
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl"] }, // ' '
325
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
326
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl"] }, // ' '
327
- { "startIndex": 29, "endIndex": 41, "scopes": ["source.abl", "variable.other.abl"] }, // 'mBackingList'
328
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
329
- { "startIndex": 42, "endIndex": 49, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'IndexOf'
330
- { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
331
- { "startIndex": 50, "endIndex": 55, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'pItem'
332
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
333
- { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
334
- ]
335
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
336
- })
337
-
338
- describe('', () => {
339
- let statement = `var class memptr mData`;
340
- let expectedTokens = [
341
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
342
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
343
- { "startIndex": 4, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'class'
344
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
345
- { "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'memptr'
346
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
347
- { "startIndex": 17, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] } // 'mData'
348
- ]
349
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
350
- })
351
-
352
- describe('', () => {
353
- let statement = `var memptr mData`;
354
- let expectedTokens = [
355
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
356
- { "startIndex": 3, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
357
- { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'memptr'
358
- { "startIndex": 13, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
359
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
360
- { "startIndex": 16, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] } // 'mData'
361
- ]
362
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
363
- })
364
-
365
- describe('', () => {
366
- let statement = `var class George oGeorge.`;
367
- let expectedTokens = [
368
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
369
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
370
- { "startIndex": 4, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'class'
371
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
372
- { "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'George'
373
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
374
- { "startIndex": 17, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'oGeorge'
375
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
376
- ]
377
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
378
- })
379
-
380
- describe('', () => {
381
- let statement = `var decimal pie = 22 / 3, piIsh = 3.1415927.`;
382
- let expectedTokens = [
383
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
384
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
385
- { "startIndex": 4, "endIndex": 11, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'decimal'
386
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
387
- { "startIndex": 12, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'pie'
388
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
389
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
390
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
391
- { "startIndex": 18, "endIndex": 20, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '22'
392
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
393
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '/'
394
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
395
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '3'
396
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "punctuation.separator.comma.abl"] }, // ','
397
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl"] }, // ' '
398
- { "startIndex": 26, "endIndex": 31, "scopes": ["source.abl", "variable.other.abl"] }, // 'piIsh'
399
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
400
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
401
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
402
- { "startIndex": 34, "endIndex": 43, "scopes": ["source.abl", "constant.numeric.source.abl"] }, // '3.1415927'
403
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
404
- ]
405
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
406
- })
407
-
408
- describe('', () => {
409
- let statement = `var datetime[] dtz1 = [now, today, ?, today, now].`
410
- let expectedTokens = [
411
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
412
- { "startIndex": 3, "endIndex": 5, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
413
- { "startIndex": 5, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'datetime'
414
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
415
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
416
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
417
- { "startIndex": 16, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'dtz1'
418
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
419
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
420
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl"] }, // ' '
421
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.begin.abl"] }, // '['
422
- { "startIndex": 24, "endIndex": 27, "scopes": ["source.abl", "meta.array.literal.abl", "support.function.abl"] }, // 'now'
423
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
424
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
425
- { "startIndex": 29, "endIndex": 34, "scopes": ["source.abl", "meta.array.literal.abl", "support.function.abl"] }, // 'today'
426
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
427
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
428
- { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.array.literal.abl", "constant.language.abl"] }, // '?'
429
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
430
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
431
- { "startIndex": 39, "endIndex": 44, "scopes": ["source.abl", "meta.array.literal.abl", "support.function.abl"] }, // 'today'
432
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.separator.comma.abl"] }, // ','
433
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.array.literal.abl"] }, // ' '
434
- { "startIndex": 46, "endIndex": 49, "scopes": ["source.abl", "meta.array.literal.abl", "support.function.abl"] }, // 'now'
435
- { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.array.literal.abl", "punctuation.definition.bracket.square.end.abl"] }, // ']'
436
- { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
437
- ]
438
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
439
- })
440
-
441
- describe('', () => {
442
- let statement = `var ClassMyClass cmc.`
443
- let expectedTokens = [
444
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
445
- { "startIndex": 3, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
446
- { "startIndex": 9, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'ClassMyClass'
447
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
448
- { "startIndex": 22, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'cmc'
449
- { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
450
- ]
451
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
452
- })
453
-
454
- describe('', () => {
455
- let statement = `var class ClassMyClass cmc.`
456
- let expectedTokens = [
457
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
458
- { "startIndex": 3, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
459
- { "startIndex": 8, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'class'
460
- { "startIndex": 13, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
461
- { "startIndex": 16, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'ClassMyClass'
462
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
463
- { "startIndex": 29, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'cmc'
464
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
465
- ]
466
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
467
- })