abl-tmlanguage 1.3.0 → 1.3.2

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 (51) hide show
  1. package/README.md +12 -6
  2. package/abl.tmLanguage.json +2941 -2109
  3. package/index.js +293 -27
  4. package/package.json +1 -1
  5. package/spec/blocks/on-quit.spec.js +1 -1
  6. package/spec/comments/comment-in-block-statement.spec.js +147 -0
  7. package/spec/comments/comment-in-function-args.spec.js +45 -0
  8. package/spec/comments/vscode-abl-issue#127.spec.js +46 -46
  9. package/spec/db-table-and-field/field-in-function.spec.js +58 -0
  10. package/spec/define-enum/type-name.spec.js +200 -0
  11. package/spec/define-event/simple-single-line.spec.js +61 -0
  12. package/spec/define-property/property-getter.spec.js +165 -0
  13. package/spec/define-stream/simple-single-line.spec.js +3 -4
  14. package/spec/define-temp-table/define-dataset.spec.js +66 -0
  15. package/spec/define-temp-table/define-index.spec.js +135 -1
  16. package/spec/do/do-blocks.spec.js +26 -66
  17. package/spec/do/issue#3.spec.js +2 -2
  18. package/spec/do/stop-after.spec.js +79 -0
  19. package/spec/function-call/nested-functions.spec.js +121 -3
  20. package/spec/function-call/pass-table.spec.js +35 -0
  21. package/spec/function-call/set-size.spec.js +19 -0
  22. package/spec/function-call/vscode-abl-issue#19.spec.js +3 -3
  23. package/spec/include/abl-tmlanguage-issues#5.spec.js +2 -2
  24. package/spec/include/unnamed-arguments.spec.js +39 -0
  25. package/spec/include/vscode-abl-issue#45.spec.js +1 -1
  26. package/spec/include/vscode-abl-issue#77.spec.js +5 -5
  27. package/spec/include/vscode-abl-issue#80.spec.js +5 -4
  28. package/spec/method-attribute-property-call/abl-method-attribute-call.spec.js +4 -4
  29. package/spec/method-attribute-property-call/method-call.spec.js +2 -2
  30. package/spec/method-attribute-property-call/unqualified-method-call.spec.js +42 -0
  31. package/spec/misc-statements/def-in-name.spec.js +20 -0
  32. package/spec/misc-statements/do-in-name.spec.js +259 -0
  33. package/spec/misc-statements/event-subscribe.spec.js +309 -0
  34. package/spec/misc-statements/if-then.spec.js +44 -2
  35. package/spec/misc-statements/release.spec.js +42 -0
  36. package/spec/misc-statements/return-statement.spec.js +11 -11
  37. package/spec/operators/operators.spec.js +1 -1
  38. package/spec/procedure-definition/empty-proc.spec.js +28 -3
  39. package/spec/procedure-definition/vscode-abl-issue#22.spec.js +1 -1
  40. package/spec/procedure-definition/vscode-abl-issue#26.spec.js +2 -2
  41. package/spec/procedure-definition/vscode-abl-issue#62.spec.js +1 -1
  42. package/spec/run-statement/run-statement.spec.js +7 -7
  43. package/spec/strings/translation-attribute.spec.js +1 -1
  44. package/spec/strings/vscode-abl-issue#11.spec.js +12 -13
  45. package/spec/type-name/argument.spec.js +2 -2
  46. package/spec/type-name/cast.spec.js +3 -3
  47. package/spec/type-name/define-property.spec.js +48 -106
  48. package/spec/type-name/define-variable-property.spec.js +40 -40
  49. package/spec/type-name/new.spec.js +2 -3
  50. package/spec/type-name/parameter-as.spec.js +49 -3
  51. package/spec/type-name/type-name.spec.js +3 -3
@@ -32,64 +32,64 @@ describe('', () => {
32
32
  { "startIndex": 68, "endIndex": 75, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] } // 'no-undo'
33
33
  ],
34
34
  [
35
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
36
- { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "keyword.other.abl"] }, // 'get'
37
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function.parameters", "meta.brace.round.js"] }, // '('
38
- { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function.parameters", "meta.brace.round.js"] }, // ')'
39
- { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "punctuation.terminator.abl"] } // ':'
35
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
36
+ { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'get'
37
+ { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "meta.brace.round.js"] }, // '('
38
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "meta.brace.round.js"] }, // ')'
39
+ { "startIndex": 7, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // ':'
40
40
  ],
41
41
  [
42
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
43
- { "startIndex": 6, "endIndex": 63, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "comment.line.double-slash.abl"] } // '// no need for changes if we're using UTF-8 as CPINTERNAL'
42
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
43
+ { "startIndex": 6, "endIndex": 63, "scopes": ["source.abl", "meta.define.abl", "comment.line.double-slash.abl"] } // '// no need for changes if we're using UTF-8 as CPINTERNAL'
44
44
  ],
45
45
  [
46
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
47
- { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "keyword.other.abl"] }, // 'if'
48
- { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
49
- { "startIndex": 9, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "variable.language.abl"] }, // 'this-object'
50
- { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "punctuation.separator.colon.abl"] }, // ':'
51
- { "startIndex": 21, "endIndex": 29, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "entity.name.function.abl"] }, // 'Encoding'
52
- { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
53
- { "startIndex": 30, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "keyword.operator.source.abl"] }, // 'eq'
54
- { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
55
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
56
- { "startIndex": 34, "endIndex": 39, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "string.single.complex.abl"] }, // 'UTF-8'
57
- { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
58
- { "startIndex": 40, "endIndex": 42, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "support.other.abl"] }, // ':u'
59
- { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
60
- { "startIndex": 43, "endIndex": 47, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "keyword.other.abl"] } // 'then'
46
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
47
+ { "startIndex": 6, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'if'
48
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
49
+ { "startIndex": 9, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "variable.language.abl"] }, // 'this-object'
50
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "punctuation.separator.colon.abl"] }, // ':'
51
+ { "startIndex": 21, "endIndex": 29, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'Encoding'
52
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
53
+ { "startIndex": 30, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "keyword.operator.source.abl"] }, // 'eq'
54
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
55
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.define.abl", "string.single.complex.abl", "punctuation.definition.string.begin.abl"] }, // '''
56
+ { "startIndex": 34, "endIndex": 39, "scopes": ["source.abl", "meta.define.abl", "string.single.complex.abl"] }, // 'UTF-8'
57
+ { "startIndex": 39, "endIndex": 40, "scopes": ["source.abl", "meta.define.abl", "string.single.complex.abl", "punctuation.definition.string.end.abl"] }, // '''
58
+ { "startIndex": 40, "endIndex": 42, "scopes": ["source.abl", "meta.define.abl", "string.single.complex.abl", "support.other.abl"] }, // ':u'
59
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
60
+ { "startIndex": 43, "endIndex": 47, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] } // 'then'
61
61
  ],
62
62
  [
63
- { "startIndex": 0, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
64
- { "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "keyword.other.abl"] }, // 'return'
65
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
66
- { "startIndex": 17, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "variable.other.abl"] }, // 'mUTF8Value'
67
- { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "punctuation.terminator.abl"] } // '.'
63
+ { "startIndex": 0, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
64
+ { "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'return'
65
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
66
+ { "startIndex": 17, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'mUTF8Value'
67
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
68
68
  ],
69
69
  [
70
- { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
71
- { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "keyword.other.abl"] } // 'else'
70
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
71
+ { "startIndex": 6, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] } // 'else'
72
72
  ],
73
73
  [
74
- { "startIndex": 0, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
75
- { "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "keyword.other.abl"] }, // 'return'
76
- { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function-call.abl"] }, // ' '
77
- { "startIndex": 17, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function-call.abl", "support.function.abl"] }, // 'codepage-convert'
78
- { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
79
- { "startIndex": 34, "endIndex": 44, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mUTF8Value'
80
- { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
81
- { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
82
- { "startIndex": 46, "endIndex": 57, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'this-object'
83
- { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
84
- { "startIndex": 58, "endIndex": 66, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'Encoding'
85
- { "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
86
- { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "punctuation.terminator.abl"] } // '.'
74
+ { "startIndex": 0, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
75
+ { "startIndex": 10, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'return'
76
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl"] }, // ' '
77
+ { "startIndex": 17, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "support.function.abl"] }, // 'codepage-convert'
78
+ { "startIndex": 33, "endIndex": 34, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
79
+ { "startIndex": 34, "endIndex": 44, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.other.abl"] }, // 'mUTF8Value'
80
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
81
+ { "startIndex": 45, "endIndex": 46, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
82
+ { "startIndex": 46, "endIndex": 57, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "variable.language.abl"] }, // 'this-object'
83
+ { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.colon.abl"] }, // ':'
84
+ { "startIndex": 58, "endIndex": 66, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.function.arguments.abl", "entity.name.function.abl"] }, // 'Encoding'
85
+ { "startIndex": 66, "endIndex": 67, "scopes": ["source.abl", "meta.define.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
86
+ { "startIndex": 67, "endIndex": 68, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
87
87
  ],
88
88
  [
89
- { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
90
- { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "keyword.other.abl"] }, // 'end'
91
- { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl"] }, // ' '
92
- { "startIndex": 6, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl", "meta.define.getter.abl", "keyword.other.abl"] }, // 'get'
89
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
90
+ { "startIndex": 2, "endIndex": 5, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'end'
91
+ { "startIndex": 5, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
92
+ { "startIndex": 6, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'get'
93
93
  { "startIndex": 9, "endIndex": 10, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
94
94
  ]
95
95
  ];
@@ -0,0 +1,58 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `/* must have no space after '1' */
6
+ v-credit-manager = ENTRY(1,oe-credit-class.DESCRIPTION, " ").`;
7
+ let expectedTokens = [
8
+ [
9
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "comment.block.source.abl"] }, // '/*'
10
+ { "startIndex": 2, "endIndex": 32, "scopes": ["source.abl", "comment.block.source.abl", "comment"] }, // ' must have no space after '1' '
11
+ { "startIndex": 32, "endIndex": 34, "scopes": ["source.abl", "comment.block.source.abl"] } // '*/'
12
+ ],
13
+ [
14
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl"] }, // ' '
15
+ { "startIndex": 2, "endIndex": 18, "scopes": ["source.abl", "variable.other.abl"] }, // 'v-credit-manager'
16
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl"] }, // ' '
17
+ { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
18
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
19
+ { "startIndex": 21, "endIndex": 26, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'ENTRY'
20
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
21
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '1'
22
+ { "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
23
+ { "startIndex": 29, "endIndex": 56, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'oe-credit-class.DESCRIPTION'
24
+ { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
25
+ { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
26
+ { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
27
+ { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // ' '
28
+ { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
29
+ { "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
30
+ { "startIndex": 62, "endIndex": 63, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
31
+ ]
32
+ ];
33
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
34
+ })
35
+
36
+ describe('', () => {
37
+ let statement = `v-credit-manager = ENTRY(1, oe-credit-class.DESCRIPTION, " ").`;
38
+ let expectedTokens = [
39
+ { "startIndex": 0, "endIndex": 16, "scopes": ["source.abl", "variable.other.abl"] }, // 'v-credit-manager'
40
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl"] }, // ' '
41
+ { "startIndex": 17, "endIndex": 18, "scopes": ["source.abl", "keyword.operator.source.abl"] }, // '='
42
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.function-call.abl"] }, // ' '
43
+ { "startIndex": 19, "endIndex": 24, "scopes": ["source.abl", "meta.function-call.abl", "support.function.abl"] }, // 'ENTRY'
44
+ { "startIndex": 24, "endIndex": 25, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "meta.brace.round.js"] }, // '('
45
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "constant.numeric.source.abl"] }, // '1'
46
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
47
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
48
+ { "startIndex": 28, "endIndex": 55, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "storage.data.table.abl"] }, // 'oe-credit-class.DESCRIPTION'
49
+ { "startIndex": 55, "endIndex": 56, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "punctuation.separator.comma.abl"] }, // ','
50
+ { "startIndex": 56, "endIndex": 57, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl"] }, // ' '
51
+ { "startIndex": 57, "endIndex": 58, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.begin.abl"] }, // '"'
52
+ { "startIndex": 58, "endIndex": 59, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl"] }, // ' '
53
+ { "startIndex": 59, "endIndex": 60, "scopes": ["source.abl", "meta.function-call.abl", "meta.function.arguments.abl", "string.double.complex.abl", "punctuation.definition.string.end.abl"] }, // '"'
54
+ { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "meta.function-call.abl", "meta.brace.round.js"] }, // ')'
55
+ { "startIndex": 61, "endIndex": 62, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
56
+ ];
57
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
58
+ })
@@ -0,0 +1,200 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `enum Foo.Bar.BazEnum flags:
6
+ define enum First
7
+ Second
8
+ None.
9
+ end enum.`;
10
+ let expectedTokens = [
11
+ [
12
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.define.enum.abl", "keyword.other.abl"] }, // 'enum'
13
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.define.enum.abl"] }, // ' '
14
+ { "startIndex": 5, "endIndex": 20, "scopes": ["source.abl", "meta.define.enum.abl", "entity.name.type.abl"] }, // 'Foo.Bar.BazEnum'
15
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.enum.abl"] }, // ' '
16
+ { "startIndex": 21, "endIndex": 26, "scopes": ["source.abl", "meta.define.enum.abl", "keyword.other.abl"] }, // 'flags'
17
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.enum.abl", "punctuation.terminator.abl"] } // ':'
18
+ ],
19
+ [
20
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
21
+ { "startIndex": 2, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
22
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
23
+ { "startIndex": 9, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'enum'
24
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
25
+ { "startIndex": 14, "endIndex": 19, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] } // 'First'
26
+ ],
27
+ [
28
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
29
+ { "startIndex": 14, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] } // 'Second'
30
+ ],
31
+ [
32
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
33
+ { "startIndex": 14, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'None'
34
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
35
+ ],
36
+ [
37
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
38
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
39
+ { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'enum'
40
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
41
+ ]
42
+ ];
43
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
44
+ })
45
+
46
+ describe('', () => {
47
+ let statement = `enum Foo.Bar.BazEnum flags:
48
+ define enum First = 1
49
+ Second
50
+ None = 0xa2.
51
+ end enum.`;
52
+ let expectedTokens = [
53
+ [
54
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.define.enum.abl", "keyword.other.abl"] }, // 'enum'
55
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.define.enum.abl"] }, // ' '
56
+ { "startIndex": 5, "endIndex": 20, "scopes": ["source.abl", "meta.define.enum.abl", "entity.name.type.abl"] }, // 'Foo.Bar.BazEnum'
57
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.enum.abl"] }, // ' '
58
+ { "startIndex": 21, "endIndex": 26, "scopes": ["source.abl", "meta.define.enum.abl", "keyword.other.abl"] }, // 'flags'
59
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.enum.abl", "punctuation.terminator.abl"] } // ':'
60
+ ],
61
+ [
62
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
63
+ { "startIndex": 2, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
64
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
65
+ { "startIndex": 9, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'enum'
66
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
67
+ { "startIndex": 14, "endIndex": 19, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'First'
68
+ { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
69
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "keyword.operator.source.abl"] }, // '='
70
+ { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
71
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl", "constant.numeric.source.abl"] } // '1'
72
+ ],
73
+ [
74
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
75
+ { "startIndex": 14, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] } // 'Second'
76
+ ],
77
+ [
78
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
79
+ { "startIndex": 14, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'None'
80
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
81
+ { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "keyword.operator.source.abl"] }, // '='
82
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
83
+ { "startIndex": 21, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl", "constant.numeric.source.abl"] }, // '0xa2'
84
+ { "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
85
+ ],
86
+ [
87
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
88
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
89
+ { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'enum'
90
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
91
+ ]
92
+ ];
93
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
94
+ })
95
+
96
+ describe('', () => {
97
+ let statement = `enum Foo.Bar.BazEnum flags:
98
+ define enum First // first enum
99
+ Second
100
+ None /*no value*/ .
101
+ end enum.`;
102
+ let expectedTokens = [
103
+ [
104
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.define.enum.abl", "keyword.other.abl"] }, // 'enum'
105
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.define.enum.abl"] }, // ' '
106
+ { "startIndex": 5, "endIndex": 20, "scopes": ["source.abl", "meta.define.enum.abl", "entity.name.type.abl"] }, // 'Foo.Bar.BazEnum'
107
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.enum.abl"] }, // ' '
108
+ { "startIndex": 21, "endIndex": 26, "scopes": ["source.abl", "meta.define.enum.abl", "keyword.other.abl"] }, // 'flags'
109
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.enum.abl", "punctuation.terminator.abl"] } // ':'
110
+ ],
111
+ [
112
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
113
+ { "startIndex": 2, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
114
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
115
+ { "startIndex": 9, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'enum'
116
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
117
+ { "startIndex": 14, "endIndex": 19, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'First'
118
+ { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
119
+ { "startIndex": 20, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl", "comment.line.double-slash.abl"] } // '// first enum'
120
+ ],
121
+ [
122
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
123
+ { "startIndex": 14, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] } // 'Second'
124
+ ],
125
+ [
126
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
127
+ { "startIndex": 14, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'None'
128
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
129
+ { "startIndex": 19, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "comment.block.source.abl"] }, // '/*'
130
+ { "startIndex": 21, "endIndex": 29, "scopes": ["source.abl", "meta.define.abl", "comment.block.source.abl", "comment"] }, // 'no value'
131
+ { "startIndex": 29, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "comment.block.source.abl"] }, // '*/'
132
+ { "startIndex": 31, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
133
+ { "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
134
+ ],
135
+ [
136
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
137
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
138
+ { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'enum'
139
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
140
+ ]
141
+ ];
142
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
143
+ })
144
+
145
+ describe('', () => {
146
+ let statement = `enum Foo.Bar.BazEnum flags:
147
+ define enum First // first enum
148
+ Second
149
+ None /*no value*/
150
+ Default = First.
151
+ end enum.`;
152
+ let expectedTokens = [
153
+ [
154
+ { "startIndex": 0, "endIndex": 4, "scopes": ["source.abl", "meta.define.enum.abl", "keyword.other.abl"] }, // 'enum'
155
+ { "startIndex": 4, "endIndex": 5, "scopes": ["source.abl", "meta.define.enum.abl"] }, // ' '
156
+ { "startIndex": 5, "endIndex": 20, "scopes": ["source.abl", "meta.define.enum.abl", "entity.name.type.abl"] }, // 'Foo.Bar.BazEnum'
157
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.enum.abl"] }, // ' '
158
+ { "startIndex": 21, "endIndex": 26, "scopes": ["source.abl", "meta.define.enum.abl", "keyword.other.abl"] }, // 'flags'
159
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.enum.abl", "punctuation.terminator.abl"] } // ':'
160
+ ],
161
+ [
162
+ { "startIndex": 0, "endIndex": 2, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
163
+ { "startIndex": 2, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
164
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
165
+ { "startIndex": 9, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'enum'
166
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
167
+ { "startIndex": 14, "endIndex": 19, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'First'
168
+ { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
169
+ { "startIndex": 20, "endIndex": 33, "scopes": ["source.abl", "meta.define.abl", "comment.line.double-slash.abl"] } // '// first enum'
170
+ ],
171
+ [
172
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
173
+ { "startIndex": 14, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] } // 'Second'
174
+ ],
175
+ [
176
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
177
+ { "startIndex": 14, "endIndex": 18, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'None'
178
+ { "startIndex": 18, "endIndex": 19, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
179
+ { "startIndex": 19, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "comment.block.source.abl"] }, // '/*'
180
+ { "startIndex": 21, "endIndex": 29, "scopes": ["source.abl", "meta.define.abl", "comment.block.source.abl", "comment"] }, // 'no value'
181
+ { "startIndex": 29, "endIndex": 31, "scopes": ["source.abl", "meta.define.abl", "comment.block.source.abl"] } // '*/'
182
+ ],
183
+ [
184
+ { "startIndex": 0, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
185
+ { "startIndex": 14, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'Default'
186
+ { "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
187
+ { "startIndex": 22, "endIndex": 23, "scopes": ["source.abl", "meta.define.abl", "keyword.operator.source.abl"] }, // '='
188
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
189
+ { "startIndex": 24, "endIndex": 29, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'First'
190
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
191
+ ],
192
+ [
193
+ { "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "keyword.other.abl"] }, // 'end'
194
+ { "startIndex": 3, "endIndex": 4, "scopes": ["source.abl"] }, // ' '
195
+ { "startIndex": 4, "endIndex": 8, "scopes": ["source.abl", "keyword.other.abl"] }, // 'enum'
196
+ { "startIndex": 8, "endIndex": 9, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
197
+ ]
198
+ ];
199
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
200
+ })
@@ -0,0 +1,61 @@
1
+ const { assert, expect } = require('chai');
2
+ const shared = require('../shared.js');
3
+
4
+ describe('', () => {
5
+ let statement = `define static public event AnEvent signature void().`;
6
+ let expectedTokens = [
7
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
8
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
9
+ { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'static'
10
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
11
+ { "startIndex": 14, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'public'
12
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
13
+ { "startIndex": 21, "endIndex": 26, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'event'
14
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
15
+ { "startIndex": 27, "endIndex": 34, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'AnEvent'
16
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
17
+ { "startIndex": 35, "endIndex": 44, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'signature'
18
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
19
+ { "startIndex": 45, "endIndex": 49, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'void'
20
+ { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "meta.brace.round.js"] }, // '('
21
+ { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "meta.brace.round.js"] }, // ')'
22
+ { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
23
+ ];
24
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
25
+ })
26
+
27
+ describe('', () => {
28
+ let statement = `define static public event AnEvent signature void(s as Progress.Lang.Object, e as System.EventArgs).`;
29
+ let expectedTokens = [
30
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'define'
31
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
32
+ { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'static'
33
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
34
+ { "startIndex": 14, "endIndex": 20, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'public'
35
+ { "startIndex": 20, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
36
+ { "startIndex": 21, "endIndex": 26, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'event'
37
+ { "startIndex": 26, "endIndex": 27, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
38
+ { "startIndex": 27, "endIndex": 34, "scopes": ["source.abl", "meta.define.abl", "entity.name.function.abl"] }, // 'AnEvent'
39
+ { "startIndex": 34, "endIndex": 35, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
40
+ { "startIndex": 35, "endIndex": 44, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'signature'
41
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
42
+ { "startIndex": 45, "endIndex": 49, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'void'
43
+ { "startIndex": 49, "endIndex": 50, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "meta.brace.round.js"] }, // '('
44
+ { "startIndex": 50, "endIndex": 51, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "variable.parameter.abl"] }, // 's'
45
+ { "startIndex": 51, "endIndex": 52, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters"] }, // ' '
46
+ { "startIndex": 52, "endIndex": 54, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "keyword.other.abl"] }, // 'as'
47
+ { "startIndex": 54, "endIndex": 55, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters"] }, // ' '
48
+ { "startIndex": 55, "endIndex": 75, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "entity.name.type.abl"] }, // 'Progress.Lang.Object'
49
+ { "startIndex": 75, "endIndex": 76, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "punctuation.separator.comma.abl"] }, // ','
50
+ { "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters"] }, // ' '
51
+ { "startIndex": 77, "endIndex": 78, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "variable.parameter.abl"] }, // 'e'
52
+ { "startIndex": 78, "endIndex": 79, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters"] }, // ' '
53
+ { "startIndex": 79, "endIndex": 81, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "keyword.other.abl"] }, // 'as'
54
+ { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters"] }, // ' '
55
+ { "startIndex": 82, "endIndex": 98, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "entity.name.type.abl"] }, // 'System.EventArgs'
56
+ { "startIndex": 98, "endIndex": 99, "scopes": ["source.abl", "meta.define.abl", "meta.function.parameters", "meta.brace.round.js"] }, // ')'
57
+ { "startIndex": 99, "endIndex": 100, "scopes": ["source.abl", "meta.define.abl", "punctuation.terminator.abl"] } // '.'
58
+ ];
59
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
60
+ })
61
+