@abaplint/core 2.89.13 → 2.89.14

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.
@@ -60,7 +60,8 @@ class Indent {
60
60
  || type instanceof Statements.EndCatch
61
61
  || (this.options.selectionScreenBlockIndentation === true
62
62
  && type instanceof Statements.SelectionScreen
63
- && statement.concatTokens().toUpperCase().includes("END OF BLOCK"))
63
+ && (statement.concatTokens().toUpperCase().includes("END OF BLOCK") ||
64
+ statement.concatTokens().toUpperCase().includes("END OF LINE")))
64
65
  || type instanceof Statements.ElseIf
65
66
  || type instanceof Statements.EndFunction
66
67
  || type instanceof Statements.EndInterface
@@ -149,7 +150,8 @@ class Indent {
149
150
  || type instanceof Statements.TestSeam
150
151
  || (this.options.selectionScreenBlockIndentation === true
151
152
  && type instanceof Statements.SelectionScreen
152
- && statement.concatTokens().toUpperCase().includes("BEGIN OF BLOCK"))
153
+ && (statement.concatTokens().toUpperCase().includes("BEGIN OF BLOCK") ||
154
+ statement.concatTokens().toUpperCase().includes("BEGIN OF LINE")))
153
155
  || type instanceof Statements.StartOfSelection
154
156
  || type instanceof Statements.AtSelectionScreen
155
157
  || type instanceof Statements.AtLineSelection
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.89.13";
71
+ return "2.89.14";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
@@ -1139,6 +1139,10 @@ ${indentation} output = ${topTarget}.`;
1139
1139
  if (reduceBody === undefined) {
1140
1140
  continue;
1141
1141
  }
1142
+ const letNode = reduceBody.findDirectExpression(Expressions.Let);
1143
+ if (letNode) {
1144
+ body += this.outlineLet(letNode, indentation, highSyntax, lowFile);
1145
+ }
1142
1146
  for (const init of reduceBody.findDirectExpressions(Expressions.InlineFieldDefinition)) {
1143
1147
  name = init.getFirstToken().getStr();
1144
1148
  const s = (_a = init.findFirstExpression(Expressions.Source)) === null || _a === void 0 ? void 0 : _a.concatTokens();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.89.13",
3
+ "version": "2.89.14",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -51,7 +51,7 @@
51
51
  "@types/node": "^17.0.30",
52
52
  "chai": "^4.3.6",
53
53
  "eslint": "^8.14.0",
54
- "mocha": "^9.2.2",
54
+ "mocha": "^10.0.0",
55
55
  "c8": "^7.11.2",
56
56
  "source-map-support": "^0.5.21",
57
57
  "ts-json-schema-generator": "^1.0.0",