clarity-pattern-parser 10.2.5 → 10.2.7

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.
package/dist/index.esm.js CHANGED
@@ -2900,8 +2900,11 @@ class ExpressionPattern {
2900
2900
  }
2901
2901
  else {
2902
2902
  const recursiveNode = createNode(name, [lastUnaryNode, ...node.children]);
2903
- recursiveNode.normalize(this._firstIndex);
2903
+ recursiveNode.normalize(lastUnaryNode.startIndex);
2904
2904
  lastUnaryNode = recursiveNode;
2905
+ if (cursor.hasNext()) {
2906
+ cursor.next();
2907
+ }
2905
2908
  break;
2906
2909
  }
2907
2910
  }