@abaplint/core 2.85.0 → 2.85.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.
@@ -319,7 +319,12 @@ class Lexer {
319
319
  && ahead !== "`") {
320
320
  // end of ping
321
321
  this.add();
322
- this.m = Mode.Normal;
322
+ if (ahead === `"`) {
323
+ this.m = Mode.Comment;
324
+ }
325
+ else {
326
+ this.m = Mode.Normal;
327
+ }
323
328
  }
324
329
  else if (this.m === Mode.Template
325
330
  && buf.length > 1
@@ -5,7 +5,7 @@ const combi_1 = require("../combi");
5
5
  const _1 = require(".");
6
6
  class FormParam extends combi_1.Expression {
7
7
  getRunnable() {
8
- const stru = (0, combi_1.seq)("STRUCTURE", _1.NamespaceSimpleName);
8
+ const stru = (0, combi_1.seq)("STRUCTURE", _1.SimpleFieldChain);
9
9
  const ret = (0, combi_1.seq)((0, combi_1.altPrio)(_1.PassByValue, _1.FormParamName), (0, combi_1.optPrio)((0, combi_1.altPrio)(_1.FormParamType, stru)));
10
10
  return ret;
11
11
  }
@@ -11,7 +11,7 @@ class FormParam {
11
11
  const nameToken = (_a = node.findFirstExpression(expressions_1.FormParamName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
12
12
  if (node.findDirectTokenByText("STRUCTURE") && nameToken) {
13
13
  // STRUCTURES typing
14
- const typeName = (_b = node.findDirectExpression(expressions_1.NamespaceSimpleName)) === null || _b === void 0 ? void 0 : _b.getFirstToken().getStr();
14
+ const typeName = (_b = node.findDirectExpression(expressions_1.SimpleFieldChain)) === null || _b === void 0 ? void 0 : _b.getFirstToken().getStr();
15
15
  let type = undefined;
16
16
  if (typeName) {
17
17
  type = (_c = scope.findType(typeName)) === null || _c === void 0 ? void 0 : _c.getType();
@@ -93,10 +93,8 @@ class Table extends _abstract_object_1.AbstractObject {
93
93
  if (field.GROUPNAME !== undefined) {
94
94
  components.push({ name: field.GROUPNAME, type: found });
95
95
  }
96
- else {
97
- for (const c of found.getComponents()) {
98
- components.push({ name: c.name, type: c.type });
99
- }
96
+ for (const c of found.getComponents()) {
97
+ components.push({ name: c.name, type: c.type });
100
98
  }
101
99
  }
102
100
  else if ((((_a = field.PRECFIELD) === null || _a === void 0 ? void 0 : _a.startsWith("CI_")) || ((_b = field.PRECFIELD) === null || _b === void 0 ? void 0 : _b.startsWith("SI_")))
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.85.0";
71
+ return "2.85.1";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.85.0",
3
+ "version": "2.85.1",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",