@abaplint/core 2.102.23 → 2.102.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.
|
@@ -6,7 +6,7 @@ const _combi_1 = require("./_combi");
|
|
|
6
6
|
const when_type_1 = require("./when_type");
|
|
7
7
|
class CaseType {
|
|
8
8
|
getMatcher() {
|
|
9
|
-
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.CaseType), (0, _combi_1.star)((0, _combi_1.sub)(when_type_1.WhenType)), (0, _combi_1.sta)(Statements.EndCase));
|
|
9
|
+
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.CaseType), (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sub)(when_type_1.WhenType), (0, _combi_1.sta)(Statements.Data))), (0, _combi_1.sta)(Statements.EndCase));
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
exports.CaseType = CaseType;
|
|
@@ -253,7 +253,7 @@ class CurrentScope {
|
|
|
253
253
|
return undefined;
|
|
254
254
|
}
|
|
255
255
|
const typePoolName = name.split("_")[0];
|
|
256
|
-
if (typePoolName.length <=
|
|
256
|
+
if (typePoolName.length <= 1 || typePoolName.length > 5) {
|
|
257
257
|
return undefined;
|
|
258
258
|
}
|
|
259
259
|
const typePool = this.reg.getObject("TYPE", typePoolName);
|
package/build/src/registry.js
CHANGED