clarity-pattern-parser 10.3.5 → 10.3.6
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
|
@@ -3049,6 +3049,9 @@ class ExpressionPattern {
|
|
|
3049
3049
|
break;
|
|
3050
3050
|
}
|
|
3051
3051
|
onIndex = cursor.index;
|
|
3052
|
+
if (prefix != null && this._recursivePatterns.length === 0) {
|
|
3053
|
+
lastAtomNode = createNode(prefixName, [prefix, lastAtomNode]);
|
|
3054
|
+
}
|
|
3052
3055
|
for (let i = 0; i < this._recursivePatterns.length; i++) {
|
|
3053
3056
|
const pattern = this._recursivePatterns[i];
|
|
3054
3057
|
const node = pattern.parse(cursor);
|