clarity-pattern-parser 10.2.2 → 10.2.4
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.browser.js
CHANGED
|
@@ -2818,7 +2818,7 @@
|
|
|
2818
2818
|
return pattern.type === "sequence" &&
|
|
2819
2819
|
pattern.children[0].type === "reference" &&
|
|
2820
2820
|
pattern.children[0].name === this.name &&
|
|
2821
|
-
pattern.children.length >
|
|
2821
|
+
pattern.children.length > 1;
|
|
2822
2822
|
}
|
|
2823
2823
|
_extractRecursiveTail(pattern) {
|
|
2824
2824
|
if (pattern.type === "right-associated") {
|
|
@@ -2850,6 +2850,7 @@
|
|
|
2850
2850
|
let lastBinaryNode = null;
|
|
2851
2851
|
let onIndex = cursor.index;
|
|
2852
2852
|
outer: while (true) {
|
|
2853
|
+
cursor.resolveError();
|
|
2853
2854
|
onIndex = cursor.index;
|
|
2854
2855
|
for (let i = 0; i < this._unaryPatterns.length; i++) {
|
|
2855
2856
|
cursor.moveTo(onIndex);
|
|
@@ -2892,6 +2893,7 @@
|
|
|
2892
2893
|
}
|
|
2893
2894
|
cursor.moveTo(onIndex);
|
|
2894
2895
|
}
|
|
2896
|
+
cursor.resolveError();
|
|
2895
2897
|
onIndex = cursor.index;
|
|
2896
2898
|
for (let i = 0; i < this._binaryPatterns.length; i++) {
|
|
2897
2899
|
cursor.moveTo(onIndex);
|