@abaplint/cli 2.113.47 → 2.113.48

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 +7 -7
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -5130,7 +5130,7 @@ class Field extends combi_1.Expression {
5130
5130
  getRunnable() {
5131
5131
  // "&1" can be used for almost anything(field names, method names etc.) in macros
5132
5132
  // field names with only digits should not be possible
5133
- return (0, combi_1.regex)(/^[&_!]?\*?\w*(\/\w+\/)?\d*[a-zA-Z_%\$][\w\*%\$\?#]*(~\w+)?$/);
5133
+ return (0, combi_1.regex)(/^[&_!?]?\*?\w*(\/\w+\/)?\d*[a-zA-Z_%\$][\w\*%\$\?#]*(~\w+)?$/);
5134
5134
  }
5135
5135
  }
5136
5136
  exports.Field = Field;
@@ -5255,7 +5255,7 @@ const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules
5255
5255
  const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
5256
5256
  class FieldOffset extends combi_1.Expression {
5257
5257
  getRunnable() {
5258
- const offset = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.Plus), (0, combi_1.altPrio)((0, combi_1.regex)(/^\d+$/), _1.SimpleFieldChain2));
5258
+ const offset = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.Plus), (0, combi_1.optPrio)((0, combi_1.altPrio)((0, combi_1.regex)(/^\d+$/), _1.SimpleFieldChain2)));
5259
5259
  return offset;
5260
5260
  }
5261
5261
  }
@@ -10387,7 +10387,8 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
10387
10387
  class Break {
10388
10388
  getMatcher() {
10389
10389
  const next = (0, combi_1.str)("AT NEXT APPLICATION STATEMENT");
10390
- const ret = (0, combi_1.altPrio)((0, combi_1.seq)("BREAK-POINT", (0, combi_1.optPrio)((0, combi_1.altPrio)(next, expressions_1.Source))), (0, combi_1.seq)("BREAK", expressions_1.FieldSub));
10390
+ // note BREAK is a special macro that wraps the parameter in a char
10391
+ const ret = (0, combi_1.altPrio)((0, combi_1.seq)("BREAK-POINT", (0, combi_1.optPrio)((0, combi_1.altPrio)(next, expressions_1.Source))), (0, combi_1.seq)("BREAK", (0, combi_1.starPrio)((0, combi_1.regex)(/.*/))));
10391
10392
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
10392
10393
  }
10393
10394
  }
@@ -43469,15 +43470,13 @@ exports.Definition = Definition;
43469
43470
  Object.defineProperty(exports, "__esModule", ({ value: true }));
43470
43471
  exports.Diagnostics = void 0;
43471
43472
  const LServer = __webpack_require__(/*! vscode-languageserver-types */ "./node_modules/vscode-languageserver-types/lib/umd/main.js");
43472
- const _lsp_utils_1 = __webpack_require__(/*! ./_lsp_utils */ "./node_modules/@abaplint/core/build/src/lsp/_lsp_utils.js");
43473
43473
  const severity_1 = __webpack_require__(/*! ../severity */ "./node_modules/@abaplint/core/build/src/severity.js");
43474
43474
  class Diagnostics {
43475
43475
  constructor(reg) {
43476
43476
  this.reg = reg;
43477
43477
  }
43478
43478
  findIssues(textDocument) {
43479
- this.reg.parse();
43480
- const file = _lsp_utils_1.LSPUtils.getABAPFile(this.reg, textDocument.uri); // todo, this sould also run for xml files
43479
+ const file = this.reg.getFileByName(textDocument.uri);
43481
43480
  if (file === undefined) {
43482
43481
  return [];
43483
43482
  }
@@ -43485,6 +43484,7 @@ class Diagnostics {
43485
43484
  if (obj === undefined) {
43486
43485
  return [];
43487
43486
  }
43487
+ this.reg.parse();
43488
43488
  let issues = this.reg.findIssuesObject(obj);
43489
43489
  issues = issues.filter(i => i.getFilename() === file.getFilename());
43490
43490
  return issues;
@@ -53077,7 +53077,7 @@ class Registry {
53077
53077
  }
53078
53078
  static abaplintVersion() {
53079
53079
  // magic, see build script "version.sh"
53080
- return "2.113.47";
53080
+ return "2.113.48";
53081
53081
  }
53082
53082
  getDDICReferences() {
53083
53083
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.47",
3
+ "version": "2.113.48",
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.47",
41
+ "@abaplint/core": "^2.113.48",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",