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/package.json
CHANGED
|
@@ -276,7 +276,7 @@ export class ExpressionPattern implements Pattern {
|
|
|
276
276
|
if (lastBinaryNode != null && lastUnaryNode != null) {
|
|
277
277
|
lastBinaryNode.appendChild(lastUnaryNode);
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
|
|
280
280
|
const name = this._recursiveNames[i];
|
|
281
281
|
|
|
282
282
|
if (this._endsInRecursion[i]) {
|
|
@@ -288,8 +288,12 @@ export class ExpressionPattern implements Pattern {
|
|
|
288
288
|
return recursiveNode;
|
|
289
289
|
} else {
|
|
290
290
|
const recursiveNode = createNode(name, [lastUnaryNode, ...node.children]);
|
|
291
|
-
recursiveNode.normalize(
|
|
291
|
+
recursiveNode.normalize(lastUnaryNode.startIndex);
|
|
292
292
|
lastUnaryNode = recursiveNode;
|
|
293
|
+
|
|
294
|
+
if (cursor.hasNext()) {
|
|
295
|
+
cursor.next();
|
|
296
|
+
}
|
|
293
297
|
break;
|
|
294
298
|
}
|
|
295
299
|
}
|