@abaplint/cli 2.114.4 → 2.114.6

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.
Files changed (2) hide show
  1. package/build/cli.js +11 -5
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -41210,7 +41210,12 @@ class CDSLexer {
41210
41210
  // string handling
41211
41211
  if (mode === Mode.String) {
41212
41212
  build += next;
41213
- if (next === "'") {
41213
+ if (next === "'" && nextNext === "'") {
41214
+ // escaped single quote, continue string
41215
+ build += stream.takeNext();
41216
+ col++;
41217
+ }
41218
+ else if (next === "'") {
41214
41219
  build = result.add(build, row, col, mode);
41215
41220
  mode = Mode.Default;
41216
41221
  }
@@ -42261,7 +42266,7 @@ class CDSString extends combi_1.Expression {
42261
42266
  getRunnable() {
42262
42267
  const abap = (0, combi_1.seq)("abap", ".", (0, combi_1.regex)(/^char'\w'$/));
42263
42268
  // https://stackoverflow.com/a/57754227
42264
- const reg = (0, combi_1.regex)(/^'[A-Za-zÀ-ž\u0370-\u03FF\u0400-\u04FF:\| -_]*'$/);
42269
+ const reg = (0, combi_1.regex)(/^'([A-Za-zÀ-ž\u0370-\u03FF\u0400-\u04FF:\| -_]|'')*'$/);
42265
42270
  return (0, combi_1.altPrio)(reg, abap);
42266
42271
  }
42267
42272
  }
@@ -54993,7 +54998,7 @@ class Registry {
54993
54998
  }
54994
54999
  static abaplintVersion() {
54995
55000
  // magic, see build script "version.sh"
54996
- return "2.114.4";
55001
+ return "2.114.6";
54997
55002
  }
54998
55003
  getDDICReferences() {
54999
55004
  return this.ddicReferences;
@@ -67514,6 +67519,7 @@ https://docs.abapopenchecks.org/checks/16/`,
67514
67519
  this.conf = conf;
67515
67520
  }
67516
67521
  runParsed(file, obj) {
67522
+ var _a, _b;
67517
67523
  const issues = [];
67518
67524
  const ddic = new ddic_1.DDIC(this.reg);
67519
67525
  if (obj instanceof objects_1.Class) {
@@ -67538,10 +67544,10 @@ https://docs.abapopenchecks.org/checks/16/`,
67538
67544
  rowContent = " " + rowContent;
67539
67545
  }
67540
67546
  let offset = 0;
67541
- if (rows[i - 1].endsWith("\r")) {
67547
+ if ((_a = rows[i - 1]) === null || _a === void 0 ? void 0 : _a.endsWith("\r")) {
67542
67548
  offset = -1;
67543
67549
  }
67544
- const startPos = new position_1.Position(i, rows[i - 1].length + 1 + offset);
67550
+ const startPos = new position_1.Position(i, ((_b = rows[i - 1]) === null || _b === void 0 ? void 0 : _b.length) + 1 + offset);
67545
67551
  const endPos = new position_1.Position(i + 1, rows[i].length + 1);
67546
67552
  let fix = edit_helper_1.EditHelper.replaceRange(file, startPos, endPos, rowContent);
67547
67553
  if (rows[i - 1] === undefined || rows[i - 1].indexOf("*") === 0 || rows[i - 1].includes(`"`)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.114.4",
3
+ "version": "2.114.6",
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.114.4",
41
+ "@abaplint/core": "^2.114.6",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",