@abaplint/core 2.85.48 → 2.85.49

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,9 +4,11 @@ exports.ReduceNext = void 0;
4
4
  const combi_1 = require("../combi");
5
5
  const _1 = require(".");
6
6
  const tokens_1 = require("../../1_lexer/tokens");
7
+ const version_1 = require("../../../version");
7
8
  class ReduceNext extends combi_1.Expression {
8
9
  getRunnable() {
9
- const fields = (0, combi_1.seq)(_1.Field, (0, combi_1.altPrio)("=", (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WPlus), "=")), _1.Source);
10
+ const calcAssign = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.alt)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.WPlus), "="), (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WDash), "="), "/=", "*=", "&&="));
11
+ const fields = (0, combi_1.seq)(_1.Field, (0, combi_1.altPrio)("=", calcAssign), _1.Source);
10
12
  return (0, combi_1.seq)("NEXT", (0, combi_1.plus)(fields));
11
13
  }
12
14
  }
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.85.48";
71
+ return "2.85.49";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
@@ -1014,17 +1014,18 @@ ${indentation} output = ${topTarget}.`;
1014
1014
  continue;
1015
1015
  }
1016
1016
  for (const n of next.getChildren()) {
1017
- if (n.concatTokens().toUpperCase() === "NEXT") {
1017
+ const concat = n.concatTokens();
1018
+ if (concat.toUpperCase() === "NEXT") {
1018
1019
  continue;
1019
1020
  }
1020
- else if (n.concatTokens() === "=") {
1021
- body += " = ";
1022
- }
1023
1021
  else if (n.get() instanceof Expressions.Field) {
1024
- body += indentation + " " + n.concatTokens();
1022
+ body += indentation + " " + concat + " ";
1025
1023
  }
1026
1024
  else if (n.get() instanceof Expressions.Source) {
1027
- body += n.concatTokens() + ".\n";
1025
+ body += " " + concat + ".\n";
1026
+ }
1027
+ else {
1028
+ body += concat;
1028
1029
  }
1029
1030
  }
1030
1031
  body += indentation + outlineFor.end + `.\n`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.85.48",
3
+ "version": "2.85.49",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",