abl-tmlanguage 1.1.3 → 1.3.0

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 (71) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +54 -1
  3. package/abl.tmLanguage.json +3534 -230
  4. package/azure-pipelines.yml +3 -2
  5. package/package.json +7 -6
  6. package/spec/analyze-suspend-resume/analyze-suspend-resume.spec.js +10 -10
  7. package/spec/annotations/annotation.spec.js +232 -0
  8. package/spec/array-extent/issue#5.spec.js +18 -18
  9. package/spec/blocks/finally-blocks.spec.js +90 -0
  10. package/spec/blocks/on-quit.spec.js +59 -0
  11. package/spec/comments/vscode-abl-issue#127.spec.js +165 -0
  12. package/spec/db-table-and-field/fields-except.spec.js +69 -0
  13. package/spec/db-table-and-field/foreach.spec.js +588 -0
  14. package/spec/db-table-and-field/issue#88.spec.js +120 -0
  15. package/spec/define-buffer/create-buffer.spec.js +110 -0
  16. package/spec/define-buffer/simple-single-line.spec.js +138 -0
  17. package/spec/define-parameter/simple-single-line.spec.js +140 -100
  18. package/spec/define-stream/simple-single-line.spec.js +32 -31
  19. package/spec/define-temp-table/define-index.spec.js +138 -0
  20. package/spec/define-variable/extent.spec.js +228 -0
  21. package/spec/define-variable/issue#6.spec.js +256 -198
  22. package/spec/define-variable/issue#9.spec.js +38 -32
  23. package/spec/define-variable/simple-single-line.spec.js +168 -87
  24. package/spec/define-variable/single-line-with-a-comment-at-the-end.spec.js +62 -62
  25. package/spec/define-variable/single-line-with-a-space-and-a-comment-at-the-end.spec.js +56 -56
  26. package/spec/define-variable/tm-issue#2.spec.js +20 -20
  27. package/spec/do/do-blocks.spec.js +224 -0
  28. package/spec/do/issue#3.spec.js +69 -60
  29. package/spec/function-call/nested-functions.spec.js +128 -0
  30. package/spec/function-call/vscode-abl-issue#19.spec.js +110 -107
  31. package/spec/global-scoped-define/global-define.spec.js +11 -11
  32. package/spec/global-scoped-define/scoped-define-with-procedure-keyword.spec.js +26 -26
  33. package/spec/include/abl-tmlanguage-issues#5.spec.js +40 -57
  34. package/spec/include/vscode-abl-issue#45.spec.js +15 -15
  35. package/spec/include/vscode-abl-issue#77.spec.js +129 -0
  36. package/spec/include/vscode-abl-issue#80.spec.js +40 -27
  37. package/spec/method-attribute-property-call/abl-method-attribute-call.spec.js +99 -0
  38. package/spec/method-attribute-property-call/connected-method.spec.js +30 -0
  39. package/spec/method-attribute-property-call/get-set-method-name.spec.js +96 -0
  40. package/spec/method-attribute-property-call/method-call.spec.js +112 -0
  41. package/spec/method-definition/constructor.spec.js +174 -0
  42. package/spec/method-definition/method.spec.js +320 -0
  43. package/spec/misc-statements/case-statement.spec.js +96 -0
  44. package/spec/misc-statements/copy-lob.spec.js +137 -0
  45. package/spec/misc-statements/if-then.spec.js +170 -0
  46. package/spec/misc-statements/return-statement.spec.js +53 -0
  47. package/spec/operators/operators.spec.js +78 -0
  48. package/spec/procedure-definition/empty-proc.spec.js +101 -18
  49. package/spec/procedure-definition/vscode-abl-issue#22.spec.js +46 -42
  50. package/spec/procedure-definition/vscode-abl-issue#26.spec.js +23 -16
  51. package/spec/procedure-definition/vscode-abl-issue#62.spec.js +36 -0
  52. package/spec/run-statement/run-statement.spec.js +162 -0
  53. package/spec/shared.js +84 -42
  54. package/spec/strings/translation-attribute.spec.js +52 -0
  55. package/spec/strings/vscode-abl-issue#11.spec.js +110 -114
  56. package/spec/strings/vscode-abl-issue#28.spec.js +27 -27
  57. package/spec/type-name/argument.spec.js +209 -0
  58. package/spec/type-name/cast.spec.js +165 -0
  59. package/spec/type-name/define-class.spec.js +468 -0
  60. package/spec/type-name/define-enum.spec.js +44 -0
  61. package/spec/type-name/define-interface.spec.js +159 -0
  62. package/spec/type-name/define-property.spec.js +301 -0
  63. package/spec/type-name/define-temp-table.spec.js +434 -0
  64. package/spec/type-name/define-type-spec.js +435 -0
  65. package/spec/type-name/define-variable-property.spec.js +264 -0
  66. package/spec/type-name/define-variable.spec.js +504 -0
  67. package/spec/type-name/get-class.spec.js +91 -0
  68. package/spec/type-name/new.spec.js +126 -0
  69. package/spec/type-name/parameter-as.spec.js +838 -0
  70. package/spec/type-name/type-name.spec.js +879 -0
  71. package/spec/type-name/using.spec.js +115 -0
@@ -0,0 +1,128 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement =
6
+ `cassignvalues = cassignvalues
7
+ + substitute(cFormattesdvalues,
8
+ "characterValues":U,
9
+ iCharMaxVal,
10
+ substitute(cParamNameValue, cPrettyName),
11
+ Consultingwerk.Const:CRLF).`;
12
+
13
+ let expectedTokens = [
14
+ [
15
+ { "startIndex": 0, "endIndex": 13, "scopes": ["source.abl", "variable.other.abl"] }, // 'cassignvalues'
16
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl"] }, // ' '
17
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
18
+ { "startIndex": 15, "endIndex": 16, "scopes": ["source.abl"] }, // ' '
19
+ { "startIndex": 16, "endIndex": 29, "scopes": ["source.abl", "variable.other.abl"] } // 'cassignvalues'
20
+ ],
21
+ [
22
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
23
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '+'
24
+ { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
25
+ { "startIndex": 6, "endIndex": 16, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'substitute'
26
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
27
+ { "startIndex": 17, "endIndex": 34, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cFormattesdvalues'
28
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
29
+ ],
30
+ [
31
+ { "startIndex": 0, "endIndex": 17, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
32
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
33
+ { "startIndex": 18, "endIndex": 33, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // 'characterValues'
34
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
35
+ { "startIndex": 34, "endIndex": 36, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "support.other.abl"] }, // ':U'
36
+ { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
37
+ ],
38
+ [
39
+ { "startIndex": 0, "endIndex": 17, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
40
+ { "startIndex": 17, "endIndex": 28, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'iCharMaxVal'
41
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
42
+ ],
43
+ [
44
+ { "startIndex": 0, "endIndex": 17, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl"] }, // ' '
45
+ { "startIndex": 17, "endIndex": 27, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'substitute'
46
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
47
+ { "startIndex": 28, "endIndex": 43, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cParamNameValue'
48
+ { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
49
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
50
+ { "startIndex": 45, "endIndex": 56, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cPrettyName'
51
+ { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
52
+ { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
53
+ ],
54
+ [
55
+ { "startIndex": 0, "endIndex": 17, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
56
+ { "startIndex": 17, "endIndex": 37, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.type.abl"] }, // 'Consultingwerk.Const'
57
+ { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
58
+ { "startIndex": 38, "endIndex": 42, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'CRLF'
59
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
60
+ { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
61
+ ]
62
+ ];
63
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
64
+ })
65
+
66
+ describe('', () => {
67
+ let statement = `cDbQuery = QueryHelper:InsertExpressionForBuffer(cDbQuery,
68
+ substitute("&1 = &2":U,
69
+ b_eField.FieldSource,
70
+ cParameterName),
71
+ entry(1, b_eField.FieldSource, ".":u)).`;
72
+
73
+ let expectedTokens = [
74
+ [
75
+ { "startIndex": 0, "endIndex": 8, "scopes": ["source.abl", "variable.other.abl"] }, // 'cDbQuery'
76
+ { "startIndex": 8, "endIndex": 18, "scopes": ["source.abl"] }, // ' '
77
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
78
+ { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl"] }, // ' '
79
+ { "startIndex": 20, "endIndex": 31, "scopes": ["source.abl", "variable.other.abl"] }, // 'QueryHelper'
80
+ { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "punctuation.separator.colon.abl"] }, // ':'
81
+ { "startIndex": 32, "endIndex": 57, "scopes": ["source.abl", "entity.name.function.abl"] }, // 'InsertExpressionForBuffer'
82
+ { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
83
+ { "startIndex": 58, "endIndex": 66, "scopes": ["source.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cDbQuery'
84
+ { "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
85
+ ],
86
+ [
87
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl"] }, // ' '
88
+ { "startIndex": 6, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'substitute'
89
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
90
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
91
+ { "startIndex": 18, "endIndex": 25, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // '&1 = &2'
92
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
93
+ { "startIndex": 26, "endIndex": 28, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "support.other.abl"] }, // ':U'
94
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
95
+ ],
96
+ [
97
+ { "startIndex": 0, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
98
+ { "startIndex": 16, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'b_eField.FieldSource'
99
+ { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
100
+ ],
101
+ [
102
+ { "startIndex": 0, "endIndex": 16, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
103
+ { "startIndex": 16, "endIndex": 30, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'cParameterName'
104
+ { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
105
+ { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] } // ','
106
+ ],
107
+ [
108
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl"] }, // ' '
109
+ { "startIndex": 6, "endIndex": 11, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "support.function.abl"] }, // 'entry'
110
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
111
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '1'
112
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
113
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
114
+ { "startIndex": 15, "endIndex": 35, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'b_eField.FieldSource'
115
+ { "startIndex": 35, "endIndex": 36, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
116
+ { "startIndex": 36, "endIndex": 37, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
117
+ { "startIndex": 37, "endIndex": 38, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
118
+ { "startIndex": 38, "endIndex": 39, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // '.'
119
+ { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
120
+ { "startIndex": 40, "endIndex": 42, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.function.arguments.abl", "support.other.abl"] }, // ':u'
121
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.function.arguments.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
122
+ { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.brace.round.js"] }, // ')'
123
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
124
+ ]
125
+ ];
126
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
127
+ })
128
+
@@ -2,125 +2,128 @@ const { assert, expect } = require('chai');
2
2
  const shared = require('../shared.js');
3
3
 
4
4
  describe('', () => {
5
- let statement =
6
- `def var c_test as char no-undo.
5
+ let statement =
6
+ `def var c_test as char no-undo.
7
7
  c_test = 'Test message':u.
8
8
  trim(c_test)`;
9
9
 
10
- let expectedTokens = [
11
- [
12
- {"startIndex":0,"endIndex":3,"scopes":["source.abl","meta.define.abl","keyword.other.abl"]},
13
- {"startIndex":3,"endIndex":4,"scopes":["source.abl","meta.define.abl"]},
14
- {"startIndex":4,"endIndex":7,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","keyword.other.abl"]},
15
- {"startIndex":7,"endIndex":8,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
16
- {"startIndex":8,"endIndex":14,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","variable.other.abl"]},
17
- {"startIndex":14,"endIndex":15,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
18
- {"startIndex":15,"endIndex":17,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","keyword.other.abl"]},
19
- {"startIndex":17,"endIndex":18,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
20
- {"startIndex":18,"endIndex":22,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","storage.type.abl"]},
21
- {"startIndex":22,"endIndex":23,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
22
- {"startIndex":23,"endIndex":30,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","keyword.other.abl"]},
23
- {"startIndex":30,"endIndex":31,"scopes":["source.abl","punctuation.terminator.abl"]}
24
- ],[
25
- {"startIndex":0,"endIndex":6,"scopes":["source.abl","variable.other.abl"]},
26
- {"startIndex":6,"endIndex":7,"scopes":["source.abl"]},
27
- {"startIndex":7,"endIndex":8,"scopes":["source.abl","keyword.operator.source.abl"]},
28
- {"startIndex":8,"endIndex":9,"scopes":["source.abl"]},
29
- {"startIndex":9,"endIndex":10,"scopes":["source.abl","string.single.complex.abl","punctuation.definition.string.begin.abl"]},
30
- {"startIndex":10,"endIndex":22,"scopes":["source.abl","string.single.complex.abl"]},
31
- {"startIndex":22,"endIndex":23,"scopes":["source.abl","string.single.complex.abl","punctuation.definition.string.end.abl"]},
32
- {"startIndex":23,"endIndex":24,"scopes":["source.abl"]},
33
- {"startIndex":24,"endIndex":25,"scopes":["source.abl","support.function.abl"]},
34
- {"startIndex":25,"endIndex":26,"scopes":["source.abl","punctuation.terminator.abl"]}
35
- ],[
36
- {"startIndex":0,"endIndex":4,"scopes":["source.abl","meta.function-call.abl","entity.name.function.abl"]},
37
- {"startIndex":4,"endIndex":5,"scopes":["source.abl","meta.function-call.abl","meta.brace.round.js"]},
38
- {"startIndex":5,"endIndex":11,"scopes":["source.abl","meta.function-call.abl","variable.other.abl"]},
39
- {"startIndex":11,"endIndex":12,"scopes":["source.abl","meta.function-call.abl","meta.brace.round.js"]}
40
- ]
41
- ];
42
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
10
+ let expectedTokens = [
11
+ [
12
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'def'
13
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
14
+ { "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
15
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
16
+ { "startIndex": 8, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'c_test'
17
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
18
+ { "startIndex": 15, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
19
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
20
+ { "startIndex": 18, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'char'
21
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
22
+ { "startIndex": 23, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'no-undo'
23
+ { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
24
+ ],
25
+ [
26
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "variable.other.abl"] }, // 'c_test'
27
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
28
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
29
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
30
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
31
+ { "startIndex": 10, "endIndex": 22, "scopes": ["source.abl", "string.single.complex.abl"] }, // 'Test message'
32
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
33
+ { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "support.other.abl"] }, // ':u'
34
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
35
+ ],
36
+ [
37
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'trim'
38
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
39
+ { "startIndex": 5, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'c_test'
40
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] } // ')'
41
+ ]
42
+ ];
43
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
43
44
  })
44
45
 
45
46
  describe('', () => {
46
- let statement =
47
- `def var c_test as char no-undo.
47
+ let statement =
48
+ `def var c_test as char no-undo.
48
49
  c_test = 'Test message':u.
49
50
  trim( c_test)`;
50
51
 
51
- let expectedTokens = [
52
- [
53
- {"startIndex":0,"endIndex":3,"scopes":["source.abl","meta.define.abl","keyword.other.abl"]},
54
- {"startIndex":3,"endIndex":4,"scopes":["source.abl","meta.define.abl"]},
55
- {"startIndex":4,"endIndex":7,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","keyword.other.abl"]},
56
- {"startIndex":7,"endIndex":8,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
57
- {"startIndex":8,"endIndex":14,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","variable.other.abl"]},
58
- {"startIndex":14,"endIndex":15,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
59
- {"startIndex":15,"endIndex":17,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","keyword.other.abl"]},
60
- {"startIndex":17,"endIndex":18,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
61
- {"startIndex":18,"endIndex":22,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","storage.type.abl"]},
62
- {"startIndex":22,"endIndex":23,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
63
- {"startIndex":23,"endIndex":30,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","keyword.other.abl"]},
64
- {"startIndex":30,"endIndex":31,"scopes":["source.abl","punctuation.terminator.abl"]}
65
- ],[
66
- {"startIndex":0,"endIndex":6,"scopes":["source.abl","variable.other.abl"]},
67
- {"startIndex":6,"endIndex":7,"scopes":["source.abl"]},
68
- {"startIndex":7,"endIndex":8,"scopes":["source.abl","keyword.operator.source.abl"]},
69
- {"startIndex":8,"endIndex":9,"scopes":["source.abl"]},
70
- {"startIndex":9,"endIndex":10,"scopes":["source.abl","string.single.complex.abl","punctuation.definition.string.begin.abl"]},
71
- {"startIndex":10,"endIndex":22,"scopes":["source.abl","string.single.complex.abl"]},
72
- {"startIndex":22,"endIndex":23,"scopes":["source.abl","string.single.complex.abl","punctuation.definition.string.end.abl"]},
73
- {"startIndex":23,"endIndex":24,"scopes":["source.abl"]},
74
- {"startIndex":24,"endIndex":25,"scopes":["source.abl","support.function.abl"]},
75
- {"startIndex":25,"endIndex":26,"scopes":["source.abl","punctuation.terminator.abl"]}
76
- ],[
77
- {"startIndex":0,"endIndex":4,"scopes":["source.abl","meta.function-call.abl","entity.name.function.abl"]},
78
- {"startIndex":4,"endIndex":5,"scopes":["source.abl","meta.function-call.abl","meta.brace.round.js"]},
79
- {"startIndex":5,"endIndex":6,"scopes":["source.abl","meta.function-call.abl"]},
80
- {"startIndex":6,"endIndex":12,"scopes":["source.abl","meta.function-call.abl","variable.other.abl"]},
81
- {"startIndex":12,"endIndex":13,"scopes":["source.abl","meta.function-call.abl","meta.brace.round.js"]}
82
- ]
83
- ];
84
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
52
+ let expectedTokens = [
53
+ [
54
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'def'
55
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
56
+ { "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
57
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
58
+ { "startIndex": 8, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'c_test'
59
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
60
+ { "startIndex": 15, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
61
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
62
+ { "startIndex": 18, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'char'
63
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
64
+ { "startIndex": 23, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'no-undo'
65
+ { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
66
+ ],
67
+ [
68
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "variable.other.abl"] }, // 'c_test'
69
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
70
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
71
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
72
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
73
+ { "startIndex": 10, "endIndex": 22, "scopes": ["source.abl", "string.single.complex.abl"] }, // 'Test message'
74
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
75
+ { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "support.other.abl"] }, // ':u'
76
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
77
+ ],
78
+ [
79
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'trim'
80
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
81
+ { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
82
+ { "startIndex": 6, "endIndex": 12, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'c_test'
83
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] } // ')'
84
+ ]
85
+ ];
86
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
85
87
  })
86
88
  describe('', () => {
87
- let statement =
88
- `def var c_test as char no-undo.
89
+ let statement =
90
+ `def var c_test as char no-undo.
89
91
  c_test = 'Test message':u.
90
92
  trim(c_test )`;
91
93
 
92
- let expectedTokens = [
93
- [
94
- {"startIndex":0,"endIndex":3,"scopes":["source.abl","meta.define.abl","keyword.other.abl"]},
95
- {"startIndex":3,"endIndex":4,"scopes":["source.abl","meta.define.abl"]},
96
- {"startIndex":4,"endIndex":7,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","keyword.other.abl"]},
97
- {"startIndex":7,"endIndex":8,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
98
- {"startIndex":8,"endIndex":14,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","variable.other.abl"]},
99
- {"startIndex":14,"endIndex":15,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
100
- {"startIndex":15,"endIndex":17,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","keyword.other.abl"]},
101
- {"startIndex":17,"endIndex":18,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
102
- {"startIndex":18,"endIndex":22,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","storage.type.abl"]},
103
- {"startIndex":22,"endIndex":23,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl"]},
104
- {"startIndex":23,"endIndex":30,"scopes":["source.abl","meta.define.abl","meta.define.variable.abl","keyword.other.abl"]},
105
- {"startIndex":30,"endIndex":31,"scopes":["source.abl","punctuation.terminator.abl"]}
106
- ],[
107
- {"startIndex":0,"endIndex":6,"scopes":["source.abl","variable.other.abl"]},
108
- {"startIndex":6,"endIndex":7,"scopes":["source.abl"]},
109
- {"startIndex":7,"endIndex":8,"scopes":["source.abl","keyword.operator.source.abl"]},
110
- {"startIndex":8,"endIndex":9,"scopes":["source.abl"]},
111
- {"startIndex":9,"endIndex":10,"scopes":["source.abl","string.single.complex.abl","punctuation.definition.string.begin.abl"]},
112
- {"startIndex":10,"endIndex":22,"scopes":["source.abl","string.single.complex.abl"]},
113
- {"startIndex":22,"endIndex":23,"scopes":["source.abl","string.single.complex.abl","punctuation.definition.string.end.abl"]},
114
- {"startIndex":23,"endIndex":24,"scopes":["source.abl"]},
115
- {"startIndex":24,"endIndex":25,"scopes":["source.abl","support.function.abl"]},
116
- {"startIndex":25,"endIndex":26,"scopes":["source.abl","punctuation.terminator.abl"]}
117
- ],[
118
- {"startIndex":0,"endIndex":4,"scopes":["source.abl","meta.function-call.abl","entity.name.function.abl"]},
119
- {"startIndex":4,"endIndex":5,"scopes":["source.abl","meta.function-call.abl","meta.brace.round.js"]},
120
- {"startIndex":5,"endIndex":11,"scopes":["source.abl","meta.function-call.abl","variable.other.abl"]},
121
- {"startIndex":11,"endIndex":12,"scopes":["source.abl","meta.function-call.abl"]},
122
- {"startIndex":12,"endIndex":13,"scopes":["source.abl","meta.function-call.abl","meta.brace.round.js"]}
123
- ]
124
- ];
125
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
94
+ let expectedTokens = [
95
+ [
96
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'def'
97
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
98
+ { "startIndex": 4, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
99
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
100
+ { "startIndex": 8, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'c_test'
101
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
102
+ { "startIndex": 15, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'as'
103
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
104
+ { "startIndex": 18, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl", "storage.type.abl"] }, // 'char'
105
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
106
+ { "startIndex": 23, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'no-undo'
107
+ { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
108
+ ],
109
+ [
110
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "variable.other.abl"] }, // 'c_test'
111
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl"] }, // ' '
112
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
113
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl"] }, // ' '
114
+ { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
115
+ { "startIndex": 10, "endIndex": 22, "scopes": ["source.abl", "string.single.complex.abl"] }, // 'Test message'
116
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
117
+ { "startIndex": 23, "endIndex": 25, "scopes": ["source.abl", "support.other.abl"] }, // ':u'
118
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
119
+ ],
120
+ [
121
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'trim'
122
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
123
+ { "startIndex": 5, "endIndex": 11, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'c_test'
124
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
125
+ { "startIndex": 12, "endIndex": 13, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] } // ')'
126
+ ]
127
+ ];
128
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
126
129
  })
@@ -2,16 +2,16 @@ const { assert, expect } = require('chai');
2
2
  const shared = require('../shared.js');
3
3
 
4
4
  describe('', () => {
5
- let statement = `&global-define PROCEDURE-TYPE Procedure`;
6
- // `&Scoped-define PROCEDURE-TYPE Procedure
7
- // &Scoped-define DB-AWARE no`;
5
+ let statement = `&global-define PROCEDURE-TYPE Procedure`;
6
+ // `&Scoped-define PROCEDURE-TYPE Procedure
7
+ // &Scoped-define DB-AWARE no`;
8
8
 
9
- let expectedTokens = [
10
- { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.define.abl", "keyword.other.abl"] },
11
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
12
- { "startIndex": 15, "endIndex": 29, "scopes": ["source.abl", "meta.preprocessor.define.abl", "entity.name.function.preprocessor.abl"] },
13
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
14
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "meta.preprocessor.define.abl"] }
15
- ];
16
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
9
+ let expectedTokens = [
10
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.define.abl", "keyword.other.abl"] },
11
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
12
+ { "startIndex": 15, "endIndex": 29, "scopes": ["source.abl", "meta.preprocessor.define.abl", "entity.name.function.preprocessor.abl"] },
13
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
14
+ { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "meta.preprocessor.define.abl"] }
15
+ ];
16
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
17
17
  })
@@ -2,35 +2,35 @@ const { assert, expect } = require('chai');
2
2
  const shared = require('../shared.js');
3
3
 
4
4
  describe('', () => {
5
- let statement = `&Scoped-define PROCEDURE-TYPE Procedure`;
6
- // `&Scoped-define PROCEDURE-TYPE Procedure
7
- // &Scoped-define DB-AWARE no`;
5
+ let statement = `&Scoped-define PROCEDURE-TYPE Procedure`;
6
+ // `&Scoped-define PROCEDURE-TYPE Procedure
7
+ // &Scoped-define DB-AWARE no`;
8
8
 
9
- let expectedTokens = [
10
- { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.define.abl", "keyword.other.abl"] },
11
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
12
- { "startIndex": 15, "endIndex": 29, "scopes": ["source.abl", "meta.preprocessor.define.abl", "entity.name.function.preprocessor.abl"] },
13
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
14
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "meta.preprocessor.define.abl"] }
15
- ];
16
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
9
+ let expectedTokens = [
10
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.define.abl", "keyword.other.abl"] },
11
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
12
+ { "startIndex": 15, "endIndex": 29, "scopes": ["source.abl", "meta.preprocessor.define.abl", "entity.name.function.preprocessor.abl"] },
13
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
14
+ { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "meta.preprocessor.define.abl"] }
15
+ ];
16
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
17
17
  })
18
18
  describe('', () => {
19
- let statement =
20
- `&Scoped-define PROCEDURE-TYPE Procedure
19
+ let statement =
20
+ `&Scoped-define PROCEDURE-TYPE Procedure
21
21
  &Scoped-define DB-AWARE no`;
22
22
 
23
- let expectedTokens = [
24
- [{ "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.define.abl", "keyword.other.abl"] },
25
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
26
- { "startIndex": 15, "endIndex": 29, "scopes": ["source.abl", "meta.preprocessor.define.abl", "entity.name.function.preprocessor.abl"] },
27
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
28
- { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "meta.preprocessor.define.abl"] }],
29
- [{ "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.define.abl", "keyword.other.abl"] },
30
- { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
31
- { "startIndex": 15, "endIndex": 23, "scopes": ["source.abl", "meta.preprocessor.define.abl", "entity.name.function.preprocessor.abl"] },
32
- { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
33
- { "startIndex": 24, "endIndex": 26, "scopes": ["source.abl", "meta.preprocessor.define.abl"] }]
34
- ];
35
- shared.itShouldMatchExpectedScopes(statement, expectedTokens);
23
+ let expectedTokens = [
24
+ [{ "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.define.abl", "keyword.other.abl"] },
25
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
26
+ { "startIndex": 15, "endIndex": 29, "scopes": ["source.abl", "meta.preprocessor.define.abl", "entity.name.function.preprocessor.abl"] },
27
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
28
+ { "startIndex": 30, "endIndex": 39, "scopes": ["source.abl", "meta.preprocessor.define.abl"] }],
29
+ [{ "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.preprocessor.define.abl", "keyword.other.abl"] },
30
+ { "startIndex": 14, "endIndex": 15, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
31
+ { "startIndex": 15, "endIndex": 23, "scopes": ["source.abl", "meta.preprocessor.define.abl", "entity.name.function.preprocessor.abl"] },
32
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.preprocessor.define.abl"] },
33
+ { "startIndex": 24, "endIndex": 26, "scopes": ["source.abl", "meta.preprocessor.define.abl"] }]
34
+ ];
35
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
36
36
  })