@abaplint/core 2.100.4 → 2.100.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.
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.100.4";
68
+ return "2.100.5";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
@@ -49,7 +49,16 @@ IF condition1.
49
49
  ...
50
50
  ELSEIF condition2.
51
51
  ...
52
- ENDIF.`,
52
+ ENDIF.
53
+
54
+ CASE variable.
55
+ WHEN value1.
56
+ ...
57
+ WHEN value2.
58
+ IF condition2.
59
+ ...
60
+ ENDIF.
61
+ ENDCASE.`,
53
62
  tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Quickfix],
54
63
  };
55
64
  }
@@ -48,13 +48,15 @@ class TypesNaming extends _abap_rule_1.ABAPRule {
48
48
  if (stat.get() instanceof Statements.Type && nesting === 0) {
49
49
  expr = stat.findFirstExpression(Expressions.NamespaceSimpleName);
50
50
  }
51
- else if (stat.get() instanceof Statements.TypeBegin) {
51
+ else if (stat.get() instanceof Statements.TypeBegin
52
+ || stat.get() instanceof Statements.TypeEnumBegin) {
52
53
  if (nesting === 0) {
53
54
  expr = stat.findFirstExpression(Expressions.NamespaceSimpleName);
54
55
  }
55
56
  nesting = nesting + 1;
56
57
  }
57
- else if (stat.get() instanceof Statements.TypeEnd) {
58
+ else if (stat.get() instanceof Statements.TypeEnd
59
+ || stat.get() instanceof Statements.TypeEnumEnd) {
58
60
  nesting = nesting - 1;
59
61
  continue;
60
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.100.4",
3
+ "version": "2.100.5",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -51,7 +51,7 @@
51
51
  "@microsoft/api-extractor": "^7.34.9",
52
52
  "@types/chai": "^4.3.5",
53
53
  "@types/mocha": "^10.0.1",
54
- "@types/node": "^20.2.0",
54
+ "@types/node": "^20.2.1",
55
55
  "chai": "^4.3.7",
56
56
  "eslint": "^8.40.0",
57
57
  "mocha": "^10.2.0",