@abaplint/core 2.119.0 → 2.119.1

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.
@@ -4,7 +4,7 @@ exports.SQLFieldName = void 0;
4
4
  const combi_1 = require("../combi");
5
5
  class SQLFieldName extends combi_1.Expression {
6
6
  getRunnable() {
7
- return (0, combi_1.regex)(/^(?!(?:SINGLE|INTO|DISTINCT|AS|WHERE|FOR|HAVING|APPENDING|UP|FROM)$)(\/\w+\/)?(\w+~(\/\w+\/)?(\w+|\*)|\w+)$/i);
7
+ return (0, combi_1.regex)(/^(?!(?:SINGLE|INTO|DISTINCT|AS|WHERE|FOR|HAVING|APPENDING|UP|FROM)$)(\/\w+\/)?(\*?\w+~(\/\w+\/)?(\w+|\*)|\w+)$/i);
8
8
  }
9
9
  }
10
10
  exports.SQLFieldName = SQLFieldName;
@@ -12,7 +12,7 @@ class AtSelectionScreen {
12
12
  const field = (0, combi_1.seq)("ON", expressions_1.FieldSub);
13
13
  const end = (0, combi_1.seq)("ON END OF", expressions_1.Field);
14
14
  const radio = (0, combi_1.seq)("ON RADIOBUTTON GROUP", expressions_1.Field);
15
- const block = (0, combi_1.seq)("ON BLOCK", (0, combi_1.regex)(/^\w+$/));
15
+ const block = (0, combi_1.seq)("ON BLOCK", expressions_1.BlockName);
16
16
  const help = (0, combi_1.seq)("ON HELP-REQUEST FOR", expressions_1.FieldSub);
17
17
  const ret = (0, combi_1.seq)("AT SELECTION-SCREEN", (0, combi_1.opt)((0, combi_1.alt)(output, value, radio, exit, field, end, help, block)));
18
18
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
@@ -9,7 +9,7 @@ const assert_error_1 = require("../assert_error");
9
9
  const tokens_1 = require("../../1_lexer/tokens");
10
10
  class FormParam {
11
11
  static runSyntax(node, input) {
12
- var _a, _b;
12
+ var _a, _b, _c;
13
13
  const formParamName = node.findFirstExpression(expressions_1.FormParamName);
14
14
  if (formParamName === undefined) {
15
15
  throw new assert_error_1.AssertError("FormParam, could not find FormParamName");
@@ -37,7 +37,13 @@ class FormParam {
37
37
  // untyped FORM parameter
38
38
  return new _typed_identifier_1.TypedIdentifier(nameToken, input.filename, basic_1.AnyType.get(), ["form_parameter" /* IdentifierMeta.FormParameter */]);
39
39
  }
40
- const bfound = new basic_types_1.BasicTypes(input).parseType(node);
40
+ let bfound = new basic_types_1.BasicTypes(input).parseType(node);
41
+ const isTypeC = ((_c = node.findFirstExpression(expressions_1.TypeName)) === null || _c === void 0 ? void 0 : _c.concatTokens().toUpperCase()) === "C";
42
+ const hasExplicitLength = node.findFirstExpression(expressions_1.Length) !== undefined
43
+ || node.findFirstExpression(expressions_1.ConstantFieldLength) !== undefined;
44
+ if (isTypeC && hasExplicitLength === false && bfound instanceof basic_1.CharacterType) {
45
+ bfound = basic_1.CGenericType.get();
46
+ }
41
47
  if (nameToken && bfound) {
42
48
  return new _typed_identifier_1.TypedIdentifier(nameToken, input.filename, bfound, ["form_parameter" /* IdentifierMeta.FormParameter */]);
43
49
  }
@@ -74,7 +74,7 @@ class Registry {
74
74
  }
75
75
  static abaplintVersion() {
76
76
  // magic, see build script "version.sh"
77
- return "2.119.0";
77
+ return "2.119.1";
78
78
  }
79
79
  getDDICReferences() {
80
80
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.119.0",
3
+ "version": "2.119.1",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",