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,29 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `create server hSrv.
6
- hSrv:connect('-URL http://localhost:1234/apsv').`;
7
- let expectedTokens = [
8
- [
9
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'create'
10
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
11
- { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "keyword.other.abl"] }, // 'server'
12
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
13
- { "startIndex": 14, "endIndex": 18, "scopes": ["source.abl", "variable.other.abl"] }, // 'hSrv'
14
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
15
- ],
16
- [
17
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "variable.other.abl"] }, // 'hSrv'
18
- { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
19
- { "startIndex": 5, "endIndex": 12, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'connect'
20
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
21
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.begin.abl"] }, // '''
22
- { "startIndex": 14, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.single.abl"] }, // '-URL http://localhost:1234/apsv'
23
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.single.abl", "punctuation.definition.string.end.abl"] }, // '''
24
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
25
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
26
- ]
27
- ];
28
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
29
- })
@@ -1,53 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `dataset dsEmployee:apply-callback("BEFORE-FILL":U).
6
- buffer eEmployee:apply-callback("BEFORE-FILL":U).
7
- buffer eEmployee:apply-callback("BEFORE-ROW-FILL":U).`;
8
- let expectedTokens = [
9
- [
10
- { "startIndex": 0, "endIndex": 7, "scopes": ["source.abl", "keyword.other.abl"] }, // 'dataset'
11
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl"] }, // ' '
12
- { "startIndex": 8, "endIndex": 18, "scopes": ["source.abl", "storage.data.dataset.abl"] }, // 'dsEmployee'
13
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
14
- { "startIndex": 19, "endIndex": 33, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'apply-callback'
15
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
16
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
17
- { "startIndex": 35, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'BEFORE-FILL'
18
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
19
- { "startIndex": 47, "endIndex": 49, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
20
- { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
21
- { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
22
- ],
23
- [
24
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'buffer'
25
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
26
- { "startIndex": 7, "endIndex": 16, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'eEmployee'
27
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
28
- { "startIndex": 17, "endIndex": 31, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'apply-callback'
29
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
30
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
31
- { "startIndex": 33, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'BEFORE-FILL'
32
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
33
- { "startIndex": 45, "endIndex": 47, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
34
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
35
- { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
36
- ],
37
- [
38
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'buffer'
39
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
40
- { "startIndex": 7, "endIndex": 16, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'eEmployee'
41
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
42
- { "startIndex": 17, "endIndex": 31, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'apply-callback'
43
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
44
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
45
- { "startIndex": 33, "endIndex": 48, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl"] }, // 'BEFORE-ROW-FILL'
46
- { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
47
- { "startIndex": 49, "endIndex": 51, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
48
- { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
49
- { "startIndex": 52, "endIndex": 53, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
50
- ]
51
- ];
52
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
53
- })
@@ -1,140 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `if type-of(pProxyReq, IAdaptable) then
6
- assign baseRequest = cast(cast(pProxyReq, IAdaptable):GetAdapter(get-class(IHttpRequest)), IHttpRequest).
7
- else
8
- if type-of(pProxyReq, IHttpRequest) then
9
- assign baseRequest = cast(pProxyReq, IHttpRequest):Set(now).`;
10
- let expectedTokens = [
11
- [
12
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
13
- { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
14
- { "startIndex": 3, "endIndex": 10, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'type-of'
15
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // '('
16
- { "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "meta.function-call.abl", "variable.other.abl"] }, // 'pProxyReq'
17
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.function-call.abl", "punctuation.separator.comma.abl"] }, // ','
18
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
19
- { "startIndex": 22, "endIndex": 32, "scopes": ["source.abl", "meta.function-call.abl", "entity.name.type.abl"] }, // 'IAdaptable'
20
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
21
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl"] }, // ' '
22
- { "startIndex": 34, "endIndex": 38, "scopes": ["source.abl", "keyword.other.abl"] } // 'then'
23
- ],
24
- [
25
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
26
- { "startIndex": 2, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'assign'
27
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
28
- { "startIndex": 9, "endIndex": 20, "scopes": ["source.abl", "variable.other.abl"] }, // 'baseRequest'
29
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
30
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
31
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
32
- { "startIndex": 23, "endIndex": 27, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'cast'
33
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // '('
34
- { "startIndex": 28, "endIndex": 32, "scopes": ["source.abl", "meta.function-call.abl", "meta.function-call.abl", "support.function.abl"] }, // 'cast'
35
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.function-call.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // '('
36
- { "startIndex": 33, "endIndex": 42, "scopes": ["source.abl", "meta.function-call.abl", "meta.function-call.abl", "variable.other.abl"] }, // 'pProxyReq'
37
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function-call.abl", "meta.function-call.abl", "punctuation.separator.comma.abl"] }, // ','
38
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.function-call.abl", "meta.function-call.abl"] }, // ' '
39
- { "startIndex": 44, "endIndex": 54, "scopes": ["source.abl", "meta.function-call.abl", "meta.function-call.abl", "entity.name.type.abl"] }, // 'IAdaptable'
40
- { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "meta.function-call.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
41
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.function-call.abl", "punctuation.separator.colon.abl"] }, // ':'
42
- { "startIndex": 56, "endIndex": 66, "scopes": ["source.abl", "meta.function-call.abl", "entity.name.function.abl"] }, // 'GetAdapter'
43
- { "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
44
- { "startIndex": 67, "endIndex": 76, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'get-class'
45
- { "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // '('
46
- { "startIndex": 77, "endIndex": 89, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "entity.name.type.abl"] }, // 'IHttpRequest'
47
- { "startIndex": 89, "endIndex": 90, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
48
- { "startIndex": 90, "endIndex": 91, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
49
- { "startIndex": 91, "endIndex": 92, "scopes": ["source.abl", "meta.function-call.abl", "punctuation.separator.comma.abl"] }, // ','
50
- { "startIndex": 92, "endIndex": 93, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
51
- { "startIndex": 93, "endIndex": 105, "scopes": ["source.abl", "meta.function-call.abl", "entity.name.type.abl"] }, // 'IHttpRequest'
52
- { "startIndex": 105, "endIndex": 106, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
53
- { "startIndex": 106, "endIndex": 107, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
54
- ],
55
- [
56
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "keyword.other.abl"] } // 'else'
57
- ],
58
- [
59
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
60
- { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
61
- { "startIndex": 3, "endIndex": 10, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'type-of'
62
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // '('
63
- { "startIndex": 11, "endIndex": 20, "scopes": ["source.abl", "meta.function-call.abl", "variable.other.abl"] }, // 'pProxyReq'
64
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.function-call.abl", "punctuation.separator.comma.abl"] }, // ','
65
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
66
- { "startIndex": 22, "endIndex": 34, "scopes": ["source.abl", "meta.function-call.abl", "entity.name.type.abl"] }, // 'IHttpRequest'
67
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
68
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl"] }, // ' '
69
- { "startIndex": 36, "endIndex": 40, "scopes": ["source.abl", "keyword.other.abl"] } // 'then'
70
- ],
71
- [
72
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
73
- { "startIndex": 2, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'assign'
74
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
75
- { "startIndex": 9, "endIndex": 20, "scopes": ["source.abl", "variable.other.abl"] }, // 'baseRequest'
76
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl"] }, // ' '
77
- { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
78
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
79
- { "startIndex": 23, "endIndex": 27, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'cast'
80
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // '('
81
- { "startIndex": 28, "endIndex": 37, "scopes": ["source.abl", "meta.function-call.abl", "variable.other.abl"] }, // 'pProxyReq'
82
- { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function-call.abl", "punctuation.separator.comma.abl"] }, // ','
83
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
84
- { "startIndex": 39, "endIndex": 51, "scopes": ["source.abl", "meta.function-call.abl", "entity.name.type.abl"] }, // 'IHttpRequest'
85
- { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
86
- { "startIndex": 52, "endIndex": 53, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
87
- { "startIndex": 53, "endIndex": 56, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'Set'
88
- { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
89
- { "startIndex": 57, "endIndex": 60, "scopes": ["source.abl", "meta.function.arguments.abl", "support.function.abl"] }, // 'now'
90
- { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
91
- { "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
92
- ]
93
- ];
94
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
95
- })
96
-
97
- describe('', () => {
98
- let statement = `assign webHandler = cast(Ccs.Common.Application:ServiceManager
99
- :getService(get-class(IWebHandler), pHandlerName), IWebHandler)
100
- no-error.`;
101
- let expectedTokens = [
102
- [
103
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'assign'
104
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
105
- { "startIndex": 7, "endIndex": 17, "scopes": ["source.abl", "variable.other.abl"] }, // 'webHandler'
106
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
107
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
108
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
109
- { "startIndex": 20, "endIndex": 24, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'cast'
110
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // '('
111
- { "startIndex": 25, "endIndex": 47, "scopes": ["source.abl", "meta.function-call.abl", "entity.name.type.abl"] }, // 'Ccs.Common.Application'
112
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "meta.function-call.abl", "punctuation.separator.colon.abl"] }, // ':'
113
- { "startIndex": 48, "endIndex": 62, "scopes": ["source.abl", "meta.function-call.abl", "entity.name.function.abl"] } // 'ServiceManager'
114
- ],
115
- [
116
- { "startIndex": 0, "endIndex": 50, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
117
- { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "meta.function-call.abl", "punctuation.separator.colon.abl"] }, // ':'
118
- { "startIndex": 51, "endIndex": 61, "scopes": ["source.abl", "meta.function-call.abl", "entity.name.function.abl"] }, // 'getService'
119
- { "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
120
- { "startIndex": 62, "endIndex": 71, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'get-class'
121
- { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // '('
122
- { "startIndex": 72, "endIndex": 83, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "entity.name.type.abl"] }, // 'IWebHandler'
123
- { "startIndex": 83, "endIndex": 84, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
124
- { "startIndex": 84, "endIndex": 85, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
125
- { "startIndex": 85, "endIndex": 86, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
126
- { "startIndex": 86, "endIndex": 98, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'pHandlerName'
127
- { "startIndex": 98, "endIndex": 99, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
128
- { "startIndex": 99, "endIndex": 100, "scopes": ["source.abl", "meta.function-call.abl", "punctuation.separator.comma.abl"] }, // ','
129
- { "startIndex": 100, "endIndex": 101, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
130
- { "startIndex": 101, "endIndex": 112, "scopes": ["source.abl", "meta.function-call.abl", "entity.name.type.abl"] }, // 'IWebHandler'
131
- { "startIndex": 112, "endIndex": 113, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] } // ')'
132
- ],
133
- [
134
- { "startIndex": 0, "endIndex": 12, "scopes": ["source.abl"] }, // ' '
135
- { "startIndex": 12, "endIndex": 20, "scopes": ["source.abl", "keyword.other.abl"] }, // 'no-error'
136
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
137
- ]
138
- ];
139
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
140
- })
@@ -1,268 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `assign oRequest = this-object:GenerateInvokeMethodProperties (input-output oOperation,
6
- input-output oArray,
7
- input-output poDocumentRoot,
8
- poRestMethod,
9
- pcParameters,
10
- oParameterDescriptions ).`;
11
- let expectedTokens = [
12
- [
13
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "keyword.other.abl"] }, // 'assign'
14
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
15
- { "startIndex": 7, "endIndex": 15, "scopes": ["source.abl", "variable.other.abl"] }, // 'oRequest'
16
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
17
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
18
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
19
- { "startIndex": 18, "endIndex": 29, "scopes": ["source.abl", "variable.language.abl"] }, // 'this-object'
20
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
21
- { "startIndex": 30, "endIndex": 60, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'GenerateInvokeMethodProperties'
22
- { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl"] }, // ' '
23
- { "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
24
- { "startIndex": 62, "endIndex": 74, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'input-output'
25
- { "startIndex": 74, "endIndex": 75, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
26
- { "startIndex": 75, "endIndex": 85, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'oOperation'
27
- { "startIndex": 85, "endIndex": 86, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
28
- ],
29
- [
30
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
31
- { "startIndex": 4, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'input-output'
32
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
33
- { "startIndex": 17, "endIndex": 23, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'oArray'
34
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
35
- ],
36
- [
37
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
38
- { "startIndex": 4, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'input-output'
39
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
40
- { "startIndex": 17, "endIndex": 31, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'poDocumentRoot'
41
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
42
- ],
43
- [
44
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
45
- { "startIndex": 4, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'poRestMethod'
46
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
47
- ],
48
- [
49
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
50
- { "startIndex": 4, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'pcParameters'
51
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
52
- ],
53
- [
54
- { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
55
- { "startIndex": 4, "endIndex": 26, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'oParameterDescriptions'
56
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
57
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
58
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
59
- ]
60
- ];
61
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
62
- })
63
-
64
- describe('', () => {
65
- let statement = `method private void CopyTable(input table copytable):
66
- CopyTable(table copytable by-reference,"","").
67
- end method.`;
68
- let expectedTokens = [
69
- [
70
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'method'
71
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
72
- { "startIndex": 7, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'private'
73
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
74
- { "startIndex": 15, "endIndex": 19, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'void'
75
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
76
- { "startIndex": 20, "endIndex": 29, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.function.abl"] }, // 'CopyTable'
77
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // '('
78
- { "startIndex": 30, "endIndex": 35, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'input'
79
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
80
- { "startIndex": 36, "endIndex": 41, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'table'
81
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
82
- { "startIndex": 42, "endIndex": 51, "scopes": ["source.abl", "meta.define.method.abl", "storage.data.table.abl"] }, // 'copytable'
83
- { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
84
- { "startIndex": 52, "endIndex": 53, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
85
- ],
86
- [
87
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
88
- { "startIndex": 2, "endIndex": 11, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'CopyTable'
89
- { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
90
- { "startIndex": 12, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'table'
91
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
92
- { "startIndex": 18, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'copytable'
93
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
94
- { "startIndex": 28, "endIndex": 40, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'by-reference'
95
- { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
96
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
97
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
98
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
99
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
100
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.function.arguments.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
101
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
102
- { "startIndex": 47, "endIndex": 48, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
103
- ],
104
- [
105
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
106
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
107
- { "startIndex": 4, "endIndex": 10, "scopes": ["source.abl", "keyword.other.abl"] }, // 'method'
108
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
109
- ]
110
- ];
111
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
112
- })
113
-
114
- describe('', () => {
115
- let statement = `for each table transaction:
116
- oAccessRequestBusinessEntity:SaveChanges(DATASET dsAccessRequest).
117
- oARBE:SaveChanges(DATASET dsAccessRequest).
118
- DatasetHelper:ThrowDatasetErrors(DATASET dsAccessRequest:HANDLE).
119
- end.`;
120
- let expectedTokens = [
121
- [
122
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'for'
123
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
124
- { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'each'
125
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
126
- { "startIndex": 9, "endIndex": 14, "scopes": ["source.abl", "storage.data.table.abl"] }, // 'table'
127
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl"] }, // ' '
128
- { "startIndex": 15, "endIndex": 26, "scopes": ["source.abl", "variable.language.abl"] }, // 'transaction'
129
- { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
130
- ],
131
- [
132
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
133
- { "startIndex": 2, "endIndex": 30, "scopes": ["source.abl", "variable.other.abl"] }, // 'oAccessRequestBusinessEntity'
134
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
135
- { "startIndex": 31, "endIndex": 42, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'SaveChanges'
136
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
137
- { "startIndex": 43, "endIndex": 50, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'DATASET'
138
- { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
139
- { "startIndex": 51, "endIndex": 66, "scopes": ["source.abl", "meta.function.arguments.abl", "storage.data.dataset.abl"] }, // 'dsAccessRequest'
140
- { "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
141
- { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
142
- ],
143
- [
144
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
145
- { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "variable.other.abl"] }, // 'oARBE'
146
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
147
- { "startIndex": 8, "endIndex": 19, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'SaveChanges'
148
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
149
- { "startIndex": 20, "endIndex": 27, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'DATASET'
150
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
151
- { "startIndex": 28, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl", "storage.data.dataset.abl"] }, // 'dsAccessRequest'
152
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
153
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
154
- ],
155
- [
156
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
157
- { "startIndex": 2, "endIndex": 15, "scopes": ["source.abl", "variable.other.abl"] }, // 'DatasetHelper'
158
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
159
- { "startIndex": 16, "endIndex": 34, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'ThrowDatasetErrors'
160
- { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
161
- { "startIndex": 35, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "keyword.other.abl"] }, // 'DATASET'
162
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl"] }, // ' '
163
- { "startIndex": 43, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "storage.data.dataset.abl"] }, // 'dsAccessRequest'
164
- { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
165
- { "startIndex": 59, "endIndex": 65, "scopes": ["source.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'HANDLE'
166
- { "startIndex": 65, "endIndex": 66, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
167
- { "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
168
- ],
169
- [
170
- { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
171
- { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
172
- ]
173
- ];
174
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
175
- })
176
-
177
- describe('', () => {
178
- let statement = `if Progress.Lang.Class:GetClass (pcEntityName):IsA ( "Consultingwerk.OERA.BusinessTask":U) or
179
- (Progress.Lang.Class:GetClass (pcEntityName):IsA ( "Consutingwerk.OERA.IBusinessService":U) and
180
- Progress.Lang.Class:GetClass (pcEntityName) :IsA ( "Consultingwerk.SmartFramework.SmartBusinessEntity":U) eq false) then
181
- poRestResourceService:RegisterBusinessTaskRestMethod (oMethod).`;
182
- let expectedTokens = [
183
- [
184
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "keyword.other.abl"] }, // 'if'
185
- { "startIndex": 2, "endIndex": 3, "scopes": ["source.abl"] }, // ' '
186
- { "startIndex": 3, "endIndex": 22, "scopes": ["source.abl", "entity.name.type.abl"] }, // 'Progress.Lang.Class'
187
- { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
188
- { "startIndex": 23, "endIndex": 31, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'GetClass'
189
- { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl"] }, // ' '
190
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
191
- { "startIndex": 33, "endIndex": 45, "scopes": ["source.abl", "variable.other.abl"] }, // 'pcEntityName'
192
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
193
- { "startIndex": 46, "endIndex": 47, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
194
- { "startIndex": 47, "endIndex": 50, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'IsA'
195
- { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl"] }, // ' '
196
- { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
197
- { "startIndex": 52, "endIndex": 53, "scopes": ["source.abl"] }, // ' '
198
- { "startIndex": 53, "endIndex": 54, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
199
- { "startIndex": 54, "endIndex": 86, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'Consultingwerk.OERA.BusinessTask'
200
- { "startIndex": 86, "endIndex": 87, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
201
- { "startIndex": 87, "endIndex": 89, "scopes": ["source.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
202
- { "startIndex": 89, "endIndex": 90, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
203
- { "startIndex": 90, "endIndex": 91, "scopes": ["source.abl"] }, // ' '
204
- { "startIndex": 91, "endIndex": 93, "scopes": ["source.abl", "keyword.other.abl"] } // 'or'
205
- ],
206
- [
207
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
208
- { "startIndex": 1, "endIndex": 20, "scopes": ["source.abl", "entity.name.type.abl"] }, // 'Progress.Lang.Class'
209
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
210
- { "startIndex": 21, "endIndex": 29, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'GetClass'
211
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl"] }, // ' '
212
- { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
213
- { "startIndex": 31, "endIndex": 43, "scopes": ["source.abl", "variable.other.abl"] }, // 'pcEntityName'
214
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
215
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
216
- { "startIndex": 45, "endIndex": 48, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'IsA'
217
- { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl"] }, // ' '
218
- { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
219
- { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl"] }, // ' '
220
- { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
221
- { "startIndex": 52, "endIndex": 87, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'Consutingwerk.OERA.IBusinessService'
222
- { "startIndex": 87, "endIndex": 88, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
223
- { "startIndex": 88, "endIndex": 90, "scopes": ["source.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
224
- { "startIndex": 90, "endIndex": 91, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
225
- { "startIndex": 91, "endIndex": 92, "scopes": ["source.abl"] }, // ' '
226
- { "startIndex": 92, "endIndex": 95, "scopes": ["source.abl", "keyword.other.abl"] } // 'and'
227
- ],
228
- [
229
- { "startIndex": 0, "endIndex": 19, "scopes": ["source.abl", "entity.name.type.abl"] }, // 'Progress.Lang.Class'
230
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
231
- { "startIndex": 20, "endIndex": 28, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'GetClass'
232
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl"] }, // ' '
233
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
234
- { "startIndex": 30, "endIndex": 42, "scopes": ["source.abl", "variable.other.abl"] }, // 'pcEntityName'
235
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
236
- { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl"] }, // ' '
237
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
238
- { "startIndex": 45, "endIndex": 48, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'IsA'
239
- { "startIndex": 48, "endIndex": 49, "scopes": ["source.abl"] }, // ' '
240
- { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.brace.round.js"] }, // '('
241
- { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl"] }, // ' '
242
- { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
243
- { "startIndex": 52, "endIndex": 101, "scopes": ["source.abl", "string.quoted.double.abl"] }, // 'Consultingwerk.SmartFramework.SmartBusinessEntity'
244
- { "startIndex": 101, "endIndex": 102, "scopes": ["source.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
245
- { "startIndex": 102, "endIndex": 104, "scopes": ["source.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
246
- { "startIndex": 104, "endIndex": 105, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
247
- { "startIndex": 105, "endIndex": 106, "scopes": ["source.abl"] }, // ' '
248
- { "startIndex": 106, "endIndex": 108, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // 'eq'
249
- { "startIndex": 108, "endIndex": 109, "scopes": ["source.abl"] }, // ' '
250
- { "startIndex": 109, "endIndex": 114, "scopes": ["source.abl", "constant.language.abl"] }, // 'false'
251
- { "startIndex": 114, "endIndex": 115, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
252
- { "startIndex": 115, "endIndex": 116, "scopes": ["source.abl"] }, // ' '
253
- { "startIndex": 116, "endIndex": 120, "scopes": ["source.abl", "keyword.other.abl"] } // 'then'
254
- ],
255
- [
256
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
257
- { "startIndex": 2, "endIndex": 23, "scopes": ["source.abl", "variable.other.abl"] }, // 'poRestResourceService'
258
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
259
- { "startIndex": 24, "endIndex": 54, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'RegisterBusinessTaskRestMethod'
260
- { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl"] }, // ' '
261
- { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
262
- { "startIndex": 56, "endIndex": 63, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'oMethod'
263
- { "startIndex": 63, "endIndex": 64, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
264
- { "startIndex": 64, "endIndex": 65, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
265
- ]
266
- ];
267
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
268
- })
@@ -1,18 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `quoter(poPaymentLogParameter:LockTransactionPaymentParameter:RequestID).`;
6
- let expectedTokens = [
7
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "support.function.abl"] }, // 'quoter'
8
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
9
- { "startIndex": 7, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'poPaymentLogParameter'
10
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
11
- { "startIndex": 29, "endIndex": 60, "scopes": ["source.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'LockTransactionPaymentParameter'
12
- { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
13
- { "startIndex": 61, "endIndex": 70, "scopes": ["source.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'RequestID'
14
- { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
15
- { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
16
- ];
17
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
18
- })