@abaplint/core 2.120.61 → 2.120.63

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.
@@ -43,9 +43,8 @@ const BUFS = new Set([
43
43
  CH_DOT, CH_COMMA, CH_COLON, 40 /* ( */, 41 /* ) */, 91 /* [ */,
44
44
  93 /* ] */, 43 /* + */, CH_AT
45
45
  ]);
46
- // characters that may follow the closing "'", "`" or "|" of a literal, anything else
47
- // is a syntax error, "There must be a space or equivalent character after ...",
48
- // note that "(" is allowed, ie. text elements like 'text'(001)
46
+ // characters treated as separators after ping literals and string templates.
47
+ // Single-quoted text literals always end at their closing quote.
49
48
  const AFTER_LITERAL = new Set([
50
49
  EOF, CH_SPACE, CH_TAB, CH_NL, CH_DOT, CH_COMMA, CH_COLON, CH_DQUOTE,
51
50
  40 /* ( */, 41 /* ) */, 91 /* [ */, 93 /* ] */
@@ -363,9 +362,7 @@ class Lexer {
363
362
  && ahead !== CH_QUOTE
364
363
  && this.buffer.countIsEven(CH_QUOTE)) {
365
364
  // end of string
366
- if (AFTER_LITERAL.has(ahead)) {
367
- this.add();
368
- }
365
+ this.add();
369
366
  if (ahead === CH_DQUOTE) {
370
367
  this.m = ModeComment;
371
368
  }
@@ -200,7 +200,8 @@ class ExpandMacros {
200
200
  for (const input of inputs) {
201
201
  const search = "&" + i;
202
202
  const reg = new RegExp(search, "g");
203
- str = str.replace(reg, input);
203
+ // a function replacement: "$`" and "$'" in the argument are text, not patterns
204
+ str = str.replace(reg, () => input);
204
205
  i++;
205
206
  }
206
207
  const file = new memory_file_1.MemoryFile("expand_macros.abap.prog", str);
@@ -22,7 +22,7 @@ class ModifyEntities {
22
22
  const mapped = (0, combi_1.seq)("MAPPED", expressions_1.Target);
23
23
  const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
24
24
  const end = (0, combi_1.optPrio)((0, combi_1.per)(failed, result, mapped, reported));
25
- const entities = (0, combi_1.seq)((0, combi_1.optPrio)("AUGMENTING"), "ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plusPrio)((0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(operation))));
25
+ const entities = (0, combi_1.seq)((0, combi_1.optPrio)("AUGMENTING"), "ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.optPrio)((0, combi_1.altPrio)("IN LOCAL MODE", (0, combi_1.seq)((0, combi_1.opt)("FORWARDING"), "PRIVILEGED"))), (0, combi_1.plusPrio)((0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(operation))));
26
26
  const dynamic = (0, combi_1.seq)("ENTITIES", (0, combi_1.optPrio)((0, combi_1.altPrio)("IN LOCAL MODE", (0, combi_1.seq)((0, combi_1.opt)("FORWARDING"), "PRIVILEGED"))), "OPERATIONS", expressions_1.Source);
27
27
  const create2 = (0, combi_1.seq)("CREATE", fieldsWith, (0, combi_1.opt)((0, combi_1.seq)("CREATE BY", expressions_1.EMLEntityPath, fieldsWith)));
28
28
  const create3 = (0, combi_1.seq)("CREATE BY", expressions_1.EMLEntityPath, fieldsWith);
@@ -75,7 +75,7 @@ class Registry {
75
75
  }
76
76
  static abaplintVersion() {
77
77
  // magic, see build script "version.js"
78
- return "2.120.61";
78
+ return "2.120.63";
79
79
  }
80
80
  getDDICReferences() {
81
81
  return this.ddicReferences;
@@ -48,6 +48,8 @@ class XMLConsistencyConf extends _basic_rule_config_1.BasicRuleConfig {
48
48
  this.textAndTranslationLengthSeverity = severity_1.Severity.Error;
49
49
  /** Problem severity for data element(DTEL) field checks */
50
50
  this.dataElementSeverity = severity_1.Severity.Error;
51
+ /** Problem severity for transparent table checks */
52
+ this.transparentTableSeverity = severity_1.Severity.Error;
51
53
  }
52
54
  }
53
55
  exports.XMLConsistencyConf = XMLConsistencyConf;
@@ -335,11 +337,11 @@ class XMLConsistency {
335
337
  if (obj.getTableCategory() === Objects.TableCategory.Transparent) {
336
338
  if (!((_c = obj.getDeliveryClass()) === null || _c === void 0 ? void 0 : _c.trim())) {
337
339
  const message = `Transparent table must have delivery class(CONTFLAG in DD02V) set`;
338
- issues.push(issue_1.Issue.atRow(file, 1, message, this.getMetadata().key, this.conf.severity));
340
+ issues.push(issue_1.Issue.atRow(file, 1, message, this.getMetadata().key, this.conf.transparentTableSeverity));
339
341
  }
340
342
  if (!((_d = obj.getSizeCategory()) === null || _d === void 0 ? void 0 : _d.trim())) {
341
343
  const message = `Transparent table must have size category(TABKAT in DD09L) set`;
342
- issues.push(issue_1.Issue.atRow(file, 1, message, this.getMetadata().key, this.conf.severity));
344
+ issues.push(issue_1.Issue.atRow(file, 1, message, this.getMetadata().key, this.conf.transparentTableSeverity));
343
345
  }
344
346
  }
345
347
  return issues;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.120.61",
3
+ "version": "2.120.63",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",