clarity-pattern-parser 10.2.6 → 10.2.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.
package/dist/index.esm.js CHANGED
@@ -2902,6 +2902,15 @@ class ExpressionPattern {
2902
2902
  const recursiveNode = createNode(name, [lastUnaryNode, ...node.children]);
2903
2903
  recursiveNode.normalize(lastUnaryNode.startIndex);
2904
2904
  lastUnaryNode = recursiveNode;
2905
+ if (cursor.hasNext()) {
2906
+ cursor.next();
2907
+ }
2908
+ else {
2909
+ if (lastBinaryNode != null) {
2910
+ lastBinaryNode.appendChild(lastUnaryNode);
2911
+ }
2912
+ break outer;
2913
+ }
2905
2914
  break;
2906
2915
  }
2907
2916
  }