@abaplint/cli 2.114.4 → 2.114.5

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 +8 -3
  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.5";
54997
55002
  }
54998
55003
  getDDICReferences() {
54999
55004
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.114.4",
3
+ "version": "2.114.5",
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.5",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",