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.
@@ -2908,6 +2908,15 @@
2908
2908
  const recursiveNode = createNode(name, [lastUnaryNode, ...node.children]);
2909
2909
  recursiveNode.normalize(lastUnaryNode.startIndex);
2910
2910
  lastUnaryNode = recursiveNode;
2911
+ if (cursor.hasNext()) {
2912
+ cursor.next();
2913
+ }
2914
+ else {
2915
+ if (lastBinaryNode != null) {
2916
+ lastBinaryNode.appendChild(lastUnaryNode);
2917
+ }
2918
+ break outer;
2919
+ }
2911
2920
  break;
2912
2921
  }
2913
2922
  }