abl-tmlanguage 1.3.24 → 1.3.25
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.
package/CHANGELOG.md
CHANGED
package/abl.tmLanguage.json
CHANGED
|
@@ -2834,7 +2834,7 @@
|
|
|
2834
2834
|
},
|
|
2835
2835
|
{
|
|
2836
2836
|
"comment": "This capture must use spaces and not word boundaries because the 'end' is on a space. This also captures class names that are ABL primitive type names, for example OpenEdge.Core.Memptr in its short form",
|
|
2837
|
-
"match": "(?i)\\s*(class)\\s
|
|
2837
|
+
"match": "(?i)\\s*(class)\\s+(blob|character|char|clob|com-handle|date|datetime|datetime-tz|decimal|handle|int64|integer|int|logical|longchar|memptr|raw|recid|rowid|widget-handle)?",
|
|
2838
2838
|
"captures": {
|
|
2839
2839
|
"1": {
|
|
2840
2840
|
"name": "keyword.other.abl"
|
package/package.json
CHANGED
|
@@ -437,3 +437,31 @@ describe('', () => {
|
|
|
437
437
|
]
|
|
438
438
|
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
439
439
|
})
|
|
440
|
+
|
|
441
|
+
describe('', () => {
|
|
442
|
+
let statement = `var ClassMyClass cmc.`
|
|
443
|
+
let expectedTokens = [
|
|
444
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
|
|
445
|
+
{ "startIndex": 3, "endIndex": 9, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
446
|
+
{ "startIndex": 9, "endIndex": 21, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'ClassMyClass'
|
|
447
|
+
{ "startIndex": 21, "endIndex": 22, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
448
|
+
{ "startIndex": 22, "endIndex": 25, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'cmc'
|
|
449
|
+
{ "startIndex": 25, "endIndex": 26, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
450
|
+
]
|
|
451
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
452
|
+
})
|
|
453
|
+
|
|
454
|
+
describe('', () => {
|
|
455
|
+
let statement = `var class ClassMyClass cmc.`
|
|
456
|
+
let expectedTokens = [
|
|
457
|
+
{ "startIndex": 0, "endIndex": 3, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'var'
|
|
458
|
+
{ "startIndex": 3, "endIndex": 8, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
459
|
+
{ "startIndex": 8, "endIndex": 13, "scopes": ["source.abl", "meta.define.abl", "keyword.other.abl"] }, // 'class'
|
|
460
|
+
{ "startIndex": 13, "endIndex": 16, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
461
|
+
{ "startIndex": 16, "endIndex": 28, "scopes": ["source.abl", "meta.define.abl", "entity.name.type.abl"] }, // 'ClassMyClass'
|
|
462
|
+
{ "startIndex": 28, "endIndex": 29, "scopes": ["source.abl", "meta.define.abl"] }, // ' '
|
|
463
|
+
{ "startIndex": 29, "endIndex": 32, "scopes": ["source.abl", "meta.define.abl", "variable.other.abl"] }, // 'cmc'
|
|
464
|
+
{ "startIndex": 32, "endIndex": 33, "scopes": ["source.abl", "punctuation.terminator.abl"] } // '.'
|
|
465
|
+
]
|
|
466
|
+
shared.itShouldMatchExpectedScopes(statement, expectedTokens);
|
|
467
|
+
})
|