@abaplint/cli 2.113.14 → 2.113.15
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.
- package/build/cli.js +9 -1
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -52747,7 +52747,7 @@ class Registry {
|
|
|
52747
52747
|
}
|
|
52748
52748
|
static abaplintVersion() {
|
|
52749
52749
|
// magic, see build script "version.sh"
|
|
52750
|
-
return "2.113.
|
|
52750
|
+
return "2.113.15";
|
|
52751
52751
|
}
|
|
52752
52752
|
getDDICReferences() {
|
|
52753
52753
|
return this.ddicReferences;
|
|
@@ -63706,6 +63706,7 @@ ENDCLASS.`,
|
|
|
63706
63706
|
};
|
|
63707
63707
|
const expected = new indent_1.Indent(indentOpts).getExpectedIndents(file);
|
|
63708
63708
|
const ret = [];
|
|
63709
|
+
let previous = undefined;
|
|
63709
63710
|
for (const statement of file.getStatements()) {
|
|
63710
63711
|
const position = statement.getFirstToken().getStart();
|
|
63711
63712
|
if (position instanceof virtual_position_1.VirtualPosition) {
|
|
@@ -63740,6 +63741,12 @@ ENDCLASS.`,
|
|
|
63740
63741
|
continue;
|
|
63741
63742
|
}
|
|
63742
63743
|
}
|
|
63744
|
+
// only apply for the first statement in a chain
|
|
63745
|
+
if (statement.getColon() !== undefined
|
|
63746
|
+
&& (previous === null || previous === void 0 ? void 0 : previous.getColon()) !== undefined
|
|
63747
|
+
&& statement.getColon().getStart().equals(previous.getColon().getStart())) {
|
|
63748
|
+
continue;
|
|
63749
|
+
}
|
|
63743
63750
|
if (indent && indent > 0 && indent !== position.getCol()) {
|
|
63744
63751
|
const expected = indent - 1;
|
|
63745
63752
|
const fix = edit_helper_1.EditHelper.replaceRange(file, new position_1.Position(position.getRow(), 1), position, " ".repeat(expected));
|
|
@@ -63750,6 +63757,7 @@ ENDCLASS.`,
|
|
|
63750
63757
|
break;
|
|
63751
63758
|
}
|
|
63752
63759
|
}
|
|
63760
|
+
previous = statement;
|
|
63753
63761
|
}
|
|
63754
63762
|
return ret;
|
|
63755
63763
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.15",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.113.
|
|
41
|
+
"@abaplint/core": "^2.113.15",
|
|
42
42
|
"@types/chai": "^4.3.19",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|