@abaplint/cli 2.110.7 → 2.110.8

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 +9 -4
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -4084,7 +4084,7 @@ exports.AttributeName = void 0;
4084
4084
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
4085
4085
  class AttributeName extends combi_1.Expression {
4086
4086
  getRunnable() {
4087
- return (0, combi_1.regex)(/^(\/\w+\/)?[\w\d_\*\~%]+$/);
4087
+ return (0, combi_1.regex)(/^(\/\w+\/)?(?!\*)[\w\d_\*\~%]+$/);
4088
4088
  }
4089
4089
  }
4090
4090
  exports.AttributeName = AttributeName;
@@ -7703,7 +7703,8 @@ class Source extends combi_1.Expression {
7703
7703
  getRunnable() {
7704
7704
  const comp = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), _1.ComponentChain);
7705
7705
  const attr = (0, combi_1.seq)(_1.Arrow, attribute_chain_1.AttributeChain);
7706
- const method = (0, combi_1.seq)(_1.MethodCallChain, (0, combi_1.optPrio)((0, combi_1.altPrio)(attr, comp)), (0, combi_1.optPrio)(dereference_1.Dereference));
7706
+ const deref = (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Version.v756, dereference_1.Dereference));
7707
+ const method = (0, combi_1.seq)(_1.MethodCallChain, (0, combi_1.optPrio)((0, combi_1.altPrio)(attr, comp)), deref);
7707
7708
  const rparen = (0, combi_1.tok)(tokens_1.WParenRightW);
7708
7709
  const rparenNoSpace = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenRightW), (0, combi_1.tok)(tokens_1.WParenRightW));
7709
7710
  // paren used for eg. "( 2 + 1 ) * 4"
@@ -7711,7 +7712,7 @@ class Source extends combi_1.Expression {
7711
7712
  const after = (0, combi_1.seq)((0, combi_1.altPrio)("&", "&&", _1.ArithOperator), Source);
7712
7713
  const bool = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.ver)(version_1.Version.v702, (0, combi_1.regex)(/^BOOLC$/i)), (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.regex)(/^XSDBOOL$/i))), (0, combi_1.tok)(tokens_1.ParenLeftW), _1.Cond, ")");
7713
7714
  const prefix = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WPlus), "BIT-NOT");
7714
- const old = (0, combi_1.seq)((0, combi_1.optPrio)(prefix), (0, combi_1.altPrio)(_1.Constant, _1.StringTemplate, text_element_1.TextElement, bool, method, (0, combi_1.seq)(_1.FieldChain, (0, combi_1.optPrio)(dereference_1.Dereference)), paren), (0, combi_1.optPrio)(after));
7715
+ const old = (0, combi_1.seq)((0, combi_1.optPrio)(prefix), (0, combi_1.altPrio)(_1.Constant, _1.StringTemplate, text_element_1.TextElement, bool, method, (0, combi_1.seq)(_1.FieldChain, deref), paren), (0, combi_1.optPrio)(after));
7715
7716
  const corr = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("CORRESPONDING", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.CorrespondingBody, rparen, (0, combi_1.optPrio)(after)));
7716
7717
  const conv = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("CONV", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.ConvBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
7717
7718
  const swit = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("SWITCH", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.SwitchBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
@@ -51787,7 +51788,7 @@ class Registry {
51787
51788
  }
51788
51789
  static abaplintVersion() {
51789
51790
  // magic, see build script "version.sh"
51790
- return "2.110.7";
51791
+ return "2.110.8";
51791
51792
  }
51792
51793
  getDDICReferences() {
51793
51794
  return this.ddicReferences;
@@ -64042,6 +64043,10 @@ class MacroNaming extends _abap_rule_1.ABAPRule {
64042
64043
  shortDescription: `Allows you to enforce a pattern for macro definitions`,
64043
64044
  extendedInformation: `Use rule "avoid_use" to avoid macros alotogether.`,
64044
64045
  tags: [_irule_1.RuleTag.Naming, _irule_1.RuleTag.SingleFile],
64046
+ badExample: `DEFINE something.
64047
+ END-OF-DEFINITION.`,
64048
+ goodExample: `DEFINE _something.
64049
+ END-OF-DEFINITION.`,
64045
64050
  };
64046
64051
  }
64047
64052
  getConfig() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.110.7",
3
+ "version": "2.110.8",
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.110.7",
41
+ "@abaplint/core": "^2.110.8",
42
42
  "@types/chai": "^4.3.16",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",