@abaplint/cli 2.113.54 → 2.113.55

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 +12 -9
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -5741,7 +5741,7 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
5741
5741
  const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
5742
5742
  class IncludeName extends combi_1.Expression {
5743
5743
  getRunnable() {
5744
- return (0, combi_1.seq)((0, combi_1.regex)(/^<?(\/\w+\/)?[\w%]+(~\w+)?>?$/), (0, combi_1.optPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.regex)(/^\w+$/))));
5744
+ return (0, combi_1.seq)((0, combi_1.regex)(/^<?(\/\w+\/)?[\w%#]+(~\w+)?>?$/), (0, combi_1.starPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.optPrio)((0, combi_1.regex)(/^\w+$/)))));
5745
5745
  }
5746
5746
  }
5747
5747
  exports.IncludeName = IncludeName;
@@ -6411,11 +6411,12 @@ exports.MacroName = MacroName;
6411
6411
 
6412
6412
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6413
6413
  exports.MessageClass = void 0;
6414
+ const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
6414
6415
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
6415
6416
  class MessageClass extends combi_1.Expression {
6416
6417
  getRunnable() {
6417
6418
  // "&1" can be used for almost anything(field names, method names etc.) in macros
6418
- return (0, combi_1.regex)(/^>?[\w\/]+#?@?\/?!?&?>?\$?$/);
6419
+ return (0, combi_1.seq)((0, combi_1.regex)(/^>?[\w\/]+#?@?\/?!?&?>?\$?\??$/), (0, combi_1.starPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.optPrio)((0, combi_1.regex)(/^\w+$/)))), (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.DashW)));
6419
6420
  }
6420
6421
  }
6421
6422
  exports.MessageClass = MessageClass;
@@ -7996,8 +7997,9 @@ class SQLCase extends combi_1.Expression {
7996
7997
  getRunnable() {
7997
7998
  const field = (0, combi_1.altPrio)(_1.SQLAggregation, SQLCase, _1.SQLFunction, _1.SQLPath, sql_field_name_1.SQLFieldName, constant_1.Constant);
7998
7999
  const sub = (0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.WParenLeftW)), field, (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.WParenRightW)));
7999
- const sourc = (0, combi_1.altPrio)(SQLCase, _1.SQLAggregation, _1.SQLFunction, sql_source_1.SQLSource);
8000
- const when = (0, combi_1.seq)("WHEN", (0, combi_1.altPrio)(sql_cond_1.SQLCond, constant_1.Constant), "THEN", sourc, (0, combi_1.starPrio)(sub));
8000
+ const sourc = (0, combi_1.altPrio)(SQLCase, _1.SQLAggregation, _1.SQLFunction, sql_source_1.SQLSource, constant_1.Constant);
8001
+ const val = (0, combi_1.altPrio)(sql_cond_1.SQLCond, constant_1.Constant, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleSource3));
8002
+ const when = (0, combi_1.seq)("WHEN", val, "THEN", sourc, (0, combi_1.starPrio)(sub));
8001
8003
  const els = (0, combi_1.seq)("ELSE", sourc);
8002
8004
  return (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("CASE", (0, combi_1.opt)(sql_field_name_1.SQLFieldName), (0, combi_1.plusPrio)(when), (0, combi_1.optPrio)(els), "END"));
8003
8005
  }
@@ -11967,13 +11969,14 @@ class Describe {
11967
11969
  const field = (0, combi_1.seq)("FIELD", expressions_1.Source, (0, combi_1.per)((0, combi_1.seq)("TYPE", expressions_1.Target), (0, combi_1.seq)("COMPONENTS", expressions_1.Target), (0, combi_1.seq)("LENGTH", expressions_1.Target, (0, combi_1.opt)(mode)), (0, combi_1.seq)("DECIMALS", expressions_1.Target), (0, combi_1.seq)("HELP-ID", expressions_1.Target), (0, combi_1.seq)("OUTPUT-LENGTH", expressions_1.Target), (0, combi_1.seq)("EDIT MASK", expressions_1.Target), (0, combi_1.seq)("INTO", expressions_1.Target)));
11968
11970
  const distance = (0, combi_1.seq)("DISTANCE BETWEEN", expressions_1.Source, "AND", expressions_1.Source, "INTO", expressions_1.Target, mode);
11969
11971
  const lines = (0, combi_1.seq)("NUMBER OF LINES", expressions_1.Target);
11972
+ const pages = (0, combi_1.seq)("NUMBER OF PAGES", expressions_1.Target);
11970
11973
  const line = (0, combi_1.seq)("LINE", expressions_1.Source);
11971
11974
  const page = (0, combi_1.seq)("PAGE", expressions_1.Source);
11972
11975
  const index = (0, combi_1.seq)("INDEX", expressions_1.Source);
11973
11976
  const top = (0, combi_1.seq)("TOP-LINES", expressions_1.Target);
11974
11977
  const lineSize = (0, combi_1.seq)("LINE-SIZE", expressions_1.Target);
11975
11978
  const first = (0, combi_1.seq)("FIRST-LINE", expressions_1.Target);
11976
- const list = (0, combi_1.seq)("LIST", (0, combi_1.per)(lines, index, line, page, top, first, lineSize));
11979
+ const list = (0, combi_1.seq)("LIST", (0, combi_1.per)(lines, pages, index, line, page, top, first, lineSize));
11977
11980
  const ret = (0, combi_1.seq)("DESCRIBE", (0, combi_1.altPrio)(table, field, distance, list));
11978
11981
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
11979
11982
  }
@@ -13222,7 +13225,7 @@ class FunctionPool {
13222
13225
  const message = (0, combi_1.seq)("MESSAGE-ID", expressions_1.MessageClass);
13223
13226
  const line = (0, combi_1.seq)("LINE-SIZE", expressions_1.Integer);
13224
13227
  const no = (0, combi_1.str)("NO STANDARD PAGE HEADING");
13225
- return (0, combi_1.seq)("FUNCTION-POOL", expressions_1.Field, (0, combi_1.opt)((0, combi_1.per)(message, line, no)));
13228
+ return (0, combi_1.seq)("FUNCTION-POOL", expressions_1.IncludeName, (0, combi_1.opt)((0, combi_1.per)(message, line, no)));
13226
13229
  }
13227
13230
  }
13228
13231
  exports.FunctionPool = FunctionPool;
@@ -15361,7 +15364,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
15361
15364
  const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
15362
15365
  class Program {
15363
15366
  getMatcher() {
15364
- const message = (0, combi_1.seq)("MESSAGE-ID", expressions_1.Source);
15367
+ const message = (0, combi_1.seq)("MESSAGE-ID", expressions_1.MessageClass);
15365
15368
  const size = (0, combi_1.seq)("LINE-SIZE", expressions_1.Source);
15366
15369
  const heading = (0, combi_1.str)("NO STANDARD PAGE HEADING");
15367
15370
  const line = (0, combi_1.seq)("LINE-COUNT", expressions_1.Source);
@@ -17026,7 +17029,7 @@ class Submit {
17026
17029
  const between = (0, combi_1.seq)("BETWEEN", expressions_1.Source, "AND", expressions_1.Source);
17027
17030
  const selectionTable = (0, combi_1.seq)("WITH SELECTION-TABLE", expressions_1.Source);
17028
17031
  const awith = (0, combi_1.seq)("WITH", expressions_1.FieldSub, (0, combi_1.alt)(compare, between), (0, combi_1.optPrio)(sign));
17029
- const prog = (0, combi_1.alt)(expressions_1.NamespaceSimpleName, expressions_1.Dynamic);
17032
+ const prog = (0, combi_1.altPrio)(expressions_1.IncludeName, expressions_1.Dynamic);
17030
17033
  const job = (0, combi_1.seq)("VIA JOB", expressions_1.Source, "NUMBER", expressions_1.Source);
17031
17034
  const exporting = (0, combi_1.str)("EXPORTING LIST TO MEMORY");
17032
17035
  const spool = (0, combi_1.seq)("SPOOL PARAMETERS", expressions_1.Source);
@@ -53131,7 +53134,7 @@ class Registry {
53131
53134
  }
53132
53135
  static abaplintVersion() {
53133
53136
  // magic, see build script "version.sh"
53134
- return "2.113.54";
53137
+ return "2.113.55";
53135
53138
  }
53136
53139
  getDDICReferences() {
53137
53140
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.54",
3
+ "version": "2.113.55",
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.54",
41
+ "@abaplint/core": "^2.113.55",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",