abl-tmlanguage 1.3.27 → 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 (139) hide show
  1. package/README.md +2 -1
  2. package/abl.tmLanguage.json +290 -111
  3. package/package.json +5 -2
  4. package/.github/workflows/ci.yml +0 -36
  5. package/CHANGELOG.md +0 -130
  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 -410
  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 -130
  25. package/spec/db-table-and-field/create-record.spec.js +0 -75
  26. package/spec/db-table-and-field/field-in-function.spec.js +0 -58
  27. package/spec/db-table-and-field/fields-except.spec.js +0 -69
  28. package/spec/db-table-and-field/find-record.spec.js +0 -158
  29. package/spec/db-table-and-field/foreach.spec.js +0 -588
  30. package/spec/db-table-and-field/issue#88.spec.js +0 -120
  31. package/spec/db-table-and-field/new-record.spec.js +0 -250
  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 -155
  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 -165
  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/misc-abl-functions.spec.js +0 -59
  64. package/spec/function-call/nested-functions.spec.js +0 -245
  65. package/spec/function-call/pass-table.spec.js +0 -116
  66. package/spec/function-call/set-size.spec.js +0 -56
  67. package/spec/function-call/udf-calls.spec.js +0 -50
  68. package/spec/function-call/vscode-abl-issue#19.spec.js +0 -129
  69. package/spec/function-definition/vscode-abl-issue#166.spec.js +0 -446
  70. package/spec/global-scoped-define/global-define.spec.js +0 -64
  71. package/spec/global-scoped-define/scoped-define-with-procedure-keyword.spec.js +0 -70
  72. package/spec/global-scoped-define/undefine.spec.js +0 -44
  73. package/spec/include/abl-tmlanguage-issues#5.spec.js +0 -40
  74. package/spec/include/include-file-name.spec.js +0 -267
  75. package/spec/include/unnamed-arguments.spec.js +0 -38
  76. package/spec/include/vscode-abl-issue#45.spec.js +0 -20
  77. package/spec/include/vscode-abl-issue#77.spec.js +0 -128
  78. package/spec/include/vscode-abl-issue#80.spec.js +0 -50
  79. package/spec/input-output/input-from.spec.js +0 -504
  80. package/spec/input-output/output-to.spec.js +0 -456
  81. package/spec/method-attribute-property-call/abl-method-attribute-call.spec.js +0 -98
  82. package/spec/method-attribute-property-call/connected-method.spec.js +0 -29
  83. package/spec/method-attribute-property-call/datset-table-attribute-method-call.spec.js +0 -53
  84. package/spec/method-attribute-property-call/get-set-method-name.spec.js +0 -141
  85. package/spec/method-attribute-property-call/method-call.spec.js +0 -268
  86. package/spec/method-attribute-property-call/nested-property-call.spec.js +0 -35
  87. package/spec/method-attribute-property-call/unqualified-method-call.spec.js +0 -41
  88. package/spec/method-definition/constructor.spec.js +0 -174
  89. package/spec/method-definition/method.spec.js +0 -541
  90. package/spec/misc-statements/array-for.spec.js +0 -21
  91. package/spec/misc-statements/case-statement.spec.js +0 -96
  92. package/spec/misc-statements/class-in-var-name.spec.js +0 -204
  93. package/spec/misc-statements/copy-lob.spec.js +0 -137
  94. package/spec/misc-statements/def-in-name.spec.js +0 -20
  95. package/spec/misc-statements/delete-objects.spec.js +0 -65
  96. package/spec/misc-statements/do-in-name.spec.js +0 -259
  97. package/spec/misc-statements/event-subscribe.spec.js +0 -308
  98. package/spec/misc-statements/export-delimiter.spec.js +0 -37
  99. package/spec/misc-statements/guid.spec.js +0 -97
  100. package/spec/misc-statements/if-then.spec.js +0 -454
  101. package/spec/misc-statements/issue#173.spec.js +0 -99
  102. package/spec/misc-statements/message-statement.spec.js +0 -21
  103. package/spec/misc-statements/record-buffer-functions.spec.js +0 -73
  104. package/spec/misc-statements/release.spec.js +0 -41
  105. package/spec/misc-statements/return-statement.spec.js +0 -64
  106. package/spec/misc-statements/skip-statement-and-fuction.spec.js +0 -35
  107. package/spec/misc-statements/system-handles.spec.js +0 -108
  108. package/spec/numbers/scientific-notation.spec.js +0 -212
  109. package/spec/operators/operators.spec.js +0 -149
  110. package/spec/operators/safe-navigation-operator.spec.js +0 -246
  111. package/spec/preprocesors/issue166.spec.js +0 -91
  112. package/spec/preprocesors/preprocessor-functions.spec.js +0 -77
  113. package/spec/preprocesors/proparse-preprocessor.spec.js +0 -90
  114. package/spec/procedure-definition/empty-proc.spec.js +0 -134
  115. package/spec/procedure-definition/trigger-procedure.spec.js +0 -132
  116. package/spec/procedure-definition/vscode-abl-issue#22.spec.js +0 -46
  117. package/spec/procedure-definition/vscode-abl-issue#26.spec.js +0 -31
  118. package/spec/procedure-definition/vscode-abl-issue#325.spec.js +0 -88
  119. package/spec/procedure-definition/vscode-abl-issue#62.spec.js +0 -39
  120. package/spec/run-statement/run-statement.spec.js +0 -971
  121. package/spec/shared.js +0 -104
  122. package/spec/strings/translation-attribute.spec.js +0 -52
  123. package/spec/strings/vscode-abl-issue#11.spec.js +0 -109
  124. package/spec/strings/vscode-abl-issue#28.spec.js +0 -31
  125. package/spec/type-name/argument.spec.js +0 -207
  126. package/spec/type-name/cast.spec.js +0 -163
  127. package/spec/type-name/define-class.spec.js +0 -555
  128. package/spec/type-name/define-enum.spec.js +0 -44
  129. package/spec/type-name/define-interface.spec.js +0 -159
  130. package/spec/type-name/define-property.spec.js +0 -301
  131. package/spec/type-name/define-temp-table.spec.js +0 -434
  132. package/spec/type-name/define-type-spec.js +0 -435
  133. package/spec/type-name/define-variable-property.spec.js +0 -264
  134. package/spec/type-name/define-variable.spec.js +0 -386
  135. package/spec/type-name/get-class.spec.js +0 -91
  136. package/spec/type-name/new.spec.js +0 -185
  137. package/spec/type-name/parameter-as.spec.js +0 -978
  138. package/spec/type-name/type-name.spec.js +0 -880
  139. package/spec/type-name/using.spec.js +0 -160
@@ -1,70 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `&Scoped-define PROCEDURE-TYPE Procedure`;
6
- // `&Scoped-define PROCEDURE-TYPE Procedure
7
- // &Scoped-define DB-AWARE no`;
8
-
9
- let expectedTokens = [
10
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
11
- { "startIndex": 1, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.abl", "keyword.control.directive.define.abl"] }, // 'Scoped-define'
12
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
13
- { "startIndex": 15, "endIndex": 29, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'PROCEDURE-TYPE'
14
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
15
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "keyword.other.abl"] } // 'Procedure'
16
- ];
17
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
18
- })
19
-
20
- describe('', () => {
21
- let statement =
22
- `&Scoped-define PROCEDURE-TYPE Procedure
23
- &Scoped-define DB-AWARE no`;
24
-
25
- let expectedTokens = [
26
- [
27
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
28
- { "startIndex": 1, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.abl", "keyword.control.directive.define.abl"] }, // 'Scoped-define'
29
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
30
- { "startIndex": 15, "endIndex": 29, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'PROCEDURE-TYPE'
31
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
32
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "keyword.other.abl"] } // 'Procedure'
33
- ],
34
- [
35
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
36
- { "startIndex": 1, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.abl", "keyword.control.directive.define.abl"] }, // 'Scoped-define'
37
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
38
- { "startIndex": 15, "endIndex": 23, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'DB-AWARE'
39
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
40
- { "startIndex": 24, "endIndex": 26, "scopes": ["source.abl", "constant.language.abl"] } // 'no'
41
- ]
42
- ];
43
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
44
- })
45
-
46
- describe('', () => {
47
- let statement = `&Scoped-define ~
48
- PROCEDURE-TYPE ~
49
- Procedure`;
50
- // `&Scoped-define PROCEDURE-TYPE Procedure
51
- // &Scoped-define DB-AWARE no`;
52
-
53
- let expectedTokens = [
54
- [
55
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
56
- { "startIndex": 1, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.abl", "keyword.control.directive.define.abl"] }, // 'Scoped-define'
57
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
58
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.separator.continuation"] } // '~'
59
- ],
60
- [
61
- { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'PROCEDURE-TYPE'
62
- { "startIndex": 14, "endIndex": 16, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
63
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "punctuation.separator.continuation"] } // '~'
64
- ],
65
- [
66
- { "startIndex": 0, "endIndex": 9, "scopes": ["source.abl", "keyword.other.abl"] } // 'Procedure'
67
- ]
68
- ];
69
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
70
- })
@@ -1,44 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `&undefine PROCEDURE-TYPE`;
6
- // `&Scoped-define PROCEDURE-TYPE Procedure
7
- // &Scoped-define DB-AWARE no`;
8
-
9
- let expectedTokens = [
10
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
11
- { "startIndex": 1, "endIndex": 9, "scopes": ["source.abl", "meta.preprocessor.abl", "keyword.control.directive.define.abl"] }, // 'undefine'
12
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
13
- { "startIndex": 10, "endIndex": 24, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] } // 'PROCEDURE-TYPE'
14
- ];
15
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
16
- })
17
-
18
- describe('', () => {
19
- let statement = `&undefi PROCEDURE-TYPE`;
20
- // `&Scoped-define PROCEDURE-TYPE Procedure
21
- // &Scoped-define DB-AWARE no`;
22
-
23
- let expectedTokens = [
24
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
25
- { "startIndex": 1, "endIndex": 7, "scopes": ["source.abl", "meta.preprocessor.abl", "keyword.control.directive.define.abl"] }, // 'undefi'
26
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
27
- { "startIndex": 8, "endIndex": 22, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] } // 'PROCEDURE-TYPE'
28
- ];
29
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
30
- })
31
-
32
- describe('', () => {
33
- let statement = `&undef PROCEDURE-TYPE`;
34
- // `&Scoped-define PROCEDURE-TYPE Procedure
35
- // &Scoped-define DB-AWARE no`;
36
-
37
- let expectedTokens = [
38
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
39
- { "startIndex": 1, "endIndex": 6, "scopes": ["source.abl", "meta.preprocessor.abl", "keyword.control.directive.define.abl"] }, // 'undef'
40
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.preprocessor.abl"] }, // ' '
41
- { "startIndex": 7, "endIndex": 21, "scopes": ["source.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] } // 'PROCEDURE-TYPE'
42
- ];
43
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
44
- })
@@ -1,40 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement =
6
- `{assigned "mExtVar"} /* comment */`;
7
-
8
- let expectedTokens = [
9
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
10
- { "startIndex": 1, "endIndex": 9, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] }, // 'assigned'
11
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
12
- { "startIndex": 10, "endIndex": 11, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
13
- { "startIndex": 11, "endIndex": 18, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl"] }, // 'mExtVar'
14
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
15
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '}'
16
- { "startIndex": 20, "endIndex": 26, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
17
- { "startIndex": 26, "endIndex": 28, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
18
- { "startIndex": 28, "endIndex": 37, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' comment '
19
- { "startIndex": 37, "endIndex": 39, "scopes": ["source.abl", "comment.block.source.abl"] } // '*/'
20
- ];
21
-
22
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
23
- })
24
- describe('', () => {
25
- let statement =
26
- `{assigned &ExtVar} /* comment */`;
27
-
28
- let expectedTokens = [
29
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
30
- { "startIndex": 1, "endIndex": 9, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] }, // 'assigned'
31
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
32
- { "startIndex": 10, "endIndex": 17, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&ExtVar'
33
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '}'
34
- { "startIndex": 18, "endIndex": 25, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
35
- { "startIndex": 25, "endIndex": 27, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
36
- { "startIndex": 27, "endIndex": 36, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' comment '
37
- { "startIndex": 36, "endIndex": 38, "scopes": ["source.abl", "comment.block.source.abl"] } // '*/'
38
- ];
39
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
40
- })
@@ -1,267 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement =
6
- `{$syssys\\i\\sysvar.i &NEW=NY}`;
7
-
8
- let expectedTokens = [
9
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
10
- { "startIndex": 1, "endIndex": 19, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] }, // '$syssys\i\sysvar.i'
11
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
12
- { "startIndex": 20, "endIndex": 24, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&NEW'
13
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
14
- { "startIndex": 25, "endIndex": 27, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'NY'
15
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
16
- ];
17
-
18
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
19
- })
20
-
21
- describe('', () => {
22
- let statement =
23
- `{$syssys\\i\\sysvar.i &NEW=NEW}`;
24
-
25
- let expectedTokens = [
26
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
27
- { "startIndex": 1, "endIndex": 19, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] }, // '$syssys\i\sysvar.i'
28
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
29
- { "startIndex": 20, "endIndex": 24, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&NEW'
30
- { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
31
- { "startIndex": 25, "endIndex": 28, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'NEW'
32
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
33
- ];
34
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
35
- })
36
-
37
- describe('', () => {
38
- let statement =
39
- `{ aderes/_arest.i
40
- &FRAME-NAME = {&FRAME-NAME}
41
- &HELP-NO = {&Menu_Editor_Res_Dlg_Box}}
42
- `;
43
-
44
- let expectedTokens = [
45
- [
46
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
47
- { "startIndex": 1, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
48
- { "startIndex": 2, "endIndex": 17, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] } // 'aderes/_arest.i'
49
- ],
50
- [
51
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
52
- { "startIndex": 2, "endIndex": 13, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&FRAME-NAME'
53
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl"] }, // ' '
54
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
55
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
56
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '{'
57
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
58
- { "startIndex": 18, "endIndex": 28, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'FRAME-NAME'
59
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.section.abl"] } // '}'
60
- ],
61
- [
62
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
63
- { "startIndex": 2, "endIndex": 10, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&HELP-NO'
64
- { "startIndex": 10, "endIndex": 14, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl"] }, // ' '
65
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
66
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
67
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '{'
68
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
69
- { "startIndex": 18, "endIndex": 41, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'Menu_Editor_Res_Dlg_Box'
70
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '}'
71
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
72
- ],
73
- [
74
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
75
- ]
76
- ];
77
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
78
- })
79
-
80
- describe('', () => {
81
- let statement =
82
- `{ _arest.i
83
- &FRAME-NAME = {&FRAME-NAME}
84
- &HELP-NO = {&Menu_Editor_Res_Dlg_Box}}
85
- `;
86
-
87
- let expectedTokens = [
88
- [
89
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
90
- { "startIndex": 1, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
91
- { "startIndex": 2, "endIndex": 10, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] } // '_arest.i'
92
- ],
93
- [
94
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
95
- { "startIndex": 2, "endIndex": 13, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&FRAME-NAME'
96
- { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl"] }, // ' '
97
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
98
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
99
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '{'
100
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
101
- { "startIndex": 18, "endIndex": 28, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'FRAME-NAME'
102
- { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.section.abl"] } // '}'
103
- ],
104
- [
105
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
106
- { "startIndex": 2, "endIndex": 10, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&HELP-NO'
107
- { "startIndex": 10, "endIndex": 14, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl"] }, // ' '
108
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
109
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
110
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '{'
111
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.definition.preprocessor.abl"] }, // '&'
112
- { "startIndex": 18, "endIndex": 41, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "entity.name.function.preprocessor.abl"] }, // 'Menu_Editor_Res_Dlg_Box'
113
- { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.include.abl", "meta.preprocessor.abl", "punctuation.section.abl"] }, // '}'
114
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
115
- ],
116
- [
117
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl"] } // ''
118
- ]
119
- ];
120
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
121
- })
122
-
123
- describe('', () => {
124
- let statement = `{silly.i
125
- &co=/*
126
- &cc=*/
127
- &int=13
128
- &NEW=OLD
129
- &lc=//
130
- }`;
131
-
132
- let expectedTokens = [
133
- [
134
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
135
- { "startIndex": 1, "endIndex": 8, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] } // 'silly.i'
136
- ],
137
- [
138
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
139
- { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&co'
140
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
141
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] } // '/*'
142
- ],
143
- [
144
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
145
- { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&cc'
146
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
147
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] } // '*/'
148
- ],
149
- [
150
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
151
- { "startIndex": 2, "endIndex": 6, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&int'
152
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
153
- { "startIndex": 7, "endIndex": 9, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] } // '13'
154
- ],
155
- [
156
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
157
- { "startIndex": 2, "endIndex": 6, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&NEW'
158
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
159
- { "startIndex": 7, "endIndex": 10, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] } // 'OLD'
160
- ],
161
- [
162
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
163
- { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&lc'
164
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
165
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] } // '//'
166
- ],
167
- [
168
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
169
- ]
170
- ];
171
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
172
- })
173
-
174
- describe('', () => {
175
- let statement = `{silly.i
176
- &co=/*
177
- &cc=*/
178
-
179
- /*
180
- &int=13
181
- &NEW=OLD
182
- */
183
-
184
- &lc=//
185
- }`;
186
-
187
- let expectedTokens = [
188
- [
189
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
190
- { "startIndex": 1, "endIndex": 8, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] } // 'silly.i'
191
- ],
192
- [
193
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
194
- { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&co'
195
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
196
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] } // '/*'
197
- ],
198
- [
199
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
200
- { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&cc'
201
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
202
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] } // '*/'
203
- ],
204
- [
205
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl"] } // ''
206
- ],
207
- [
208
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
209
- { "startIndex": 2, "endIndex": 4, "scopes": ["source.abl", "meta.include.abl", "comment.block.source.abl"] } // '/*'
210
- ],
211
- [
212
- { "startIndex": 0, "endIndex": 10, "scopes": ["source.abl", "meta.include.abl", "comment.block.source.abl", "comment"] } // ' &int=13'
213
- ],
214
- [
215
- { "startIndex": 0, "endIndex": 11, "scopes": ["source.abl", "meta.include.abl", "comment.block.source.abl", "comment"] } // ' &NEW=OLD'
216
- ],
217
- [
218
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl", "comment.block.source.abl", "comment"] }, // ' '
219
- { "startIndex": 2, "endIndex": 4, "scopes": ["source.abl", "meta.include.abl", "comment.block.source.abl"] } // '*/'
220
- ],
221
- [
222
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl"] } // ''
223
- ],
224
- [
225
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
226
- { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&lc'
227
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
228
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] } // '//'
229
- ],
230
- [
231
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
232
- ]
233
- ];
234
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
235
- })
236
-
237
- describe('UNC path, FQDN, and multiple dots in the filename', () => {
238
- // see: https://github.com/vscode-abl/vscode-abl/issues/362
239
- let statement = `{\\\\fileserver.corp.company.com\\shared\\data\\config.backup.2024.07.29.i &DEBUG=TRUE}`;
240
- let expectedTokens = [
241
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
242
- { "startIndex": 1, "endIndex": 69, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] }, // '\\fileserver.corp.company.com\shared\data\config.backup.2024.07.29.i'
243
- { "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
244
- { "startIndex": 70, "endIndex": 76, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&DEBUG'
245
- { "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
246
- { "startIndex": 77, "endIndex": 81, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'TRUE'
247
- { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
248
- ];
249
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
250
- });
251
-
252
- describe('UNC path, FQDN, and multiple dots in the quoted filename', () => {
253
- // see: https://github.com/vscode-abl/vscode-abl/issues/362
254
- let statement = `{"\\\\fileserver.corp.company.com\\shared\\data\\config.backup.2024.07.29.i" &DEBUG=TRUE}`;
255
- let expectedTokens = [
256
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
257
- { "startIndex": 1, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl", "punctuation.definition.string.begin.abl"] }, // '"'
258
- { "startIndex": 2, "endIndex": 70, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] }, // '\\fileserver.corp.company.com\shared\data\config.backup.2024.07.29.i'
259
- { "startIndex": 70, "endIndex": 71, "scopes": ["source.abl", "meta.include.abl", "punctuation.definition.string.end.abl"] }, // '"'
260
- { "startIndex": 71, "endIndex": 72, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
261
- { "startIndex": 72, "endIndex": 78, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&DEBUG'
262
- { "startIndex": 78, "endIndex": 79, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
263
- { "startIndex": 79, "endIndex": 83, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'TRUE'
264
- { "startIndex": 83, "endIndex": 84, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
265
- ];
266
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
267
- });
@@ -1,38 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement = `{Consultingwerk/linqGeneric.i SerializableAnnotation oAnnotation in oMethod:Annotations
6
- WHERE Name EQ "'@ParameterSchema'":U}`;
7
-
8
- let expectedTokens = [
9
- [
10
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
11
- { "startIndex": 1, "endIndex": 29, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] }, // 'Consultingwerk/linqGeneric.i'
12
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
13
- { "startIndex": 30, "endIndex": 52, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'SerializableAnnotation'
14
- { "startIndex": 52, "endIndex": 53, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
15
- { "startIndex": 53, "endIndex": 64, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'oAnnotation'
16
- { "startIndex": 64, "endIndex": 65, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
17
- { "startIndex": 65, "endIndex": 67, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'in'
18
- { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
19
- { "startIndex": 68, "endIndex": 87, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] } // 'oMethod:Annotations'
20
- ],
21
- [
22
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
23
- { "startIndex": 2, "endIndex": 7, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'WHERE'
24
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
25
- { "startIndex": 8, "endIndex": 12, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'Name'
26
- { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
27
- { "startIndex": 13, "endIndex": 15, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'EQ'
28
- { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
29
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
30
- { "startIndex": 17, "endIndex": 35, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl"] }, // ''@ParameterSchema''
31
- { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
32
- { "startIndex": 36, "endIndex": 38, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "support.other.abl"] }, // ':U'
33
- { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
34
- ]
35
- ];
36
-
37
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
38
- })
@@ -1,20 +0,0 @@
1
- const { assert, expect } = require('chai');
2
- const shared = require('../shared.js');
3
-
4
- describe('', () => {
5
- let statement =
6
- `{ test.i "{&Test}" }`;
7
-
8
- let expectedTokens = [
9
- { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
10
- { "startIndex": 1, "endIndex": 2, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
11
- { "startIndex": 2, "endIndex": 8, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] }, // 'test.i'
12
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
13
- { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.begin.abl"] }, // '"'
14
- { "startIndex": 10, "endIndex": 17, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl"] }, // '{&Test}'
15
- { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.include.abl", "string.quoted.double.abl", "punctuation.definition.string.end.abl"] }, // '"'
16
- { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
17
- { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
18
- ];
19
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
20
- })