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/package.json
CHANGED
|
@@ -360,6 +360,10 @@ export class ExpressionPattern implements Pattern {
|
|
|
360
360
|
|
|
361
361
|
onIndex = cursor.index;
|
|
362
362
|
|
|
363
|
+
if (prefix != null && this._recursivePatterns.length === 0) {
|
|
364
|
+
lastAtomNode = createNode(prefixName, [prefix, lastAtomNode]);
|
|
365
|
+
}
|
|
366
|
+
|
|
363
367
|
for (let i = 0; i < this._recursivePatterns.length; i++) {
|
|
364
368
|
const pattern = this._recursivePatterns[i];
|
|
365
369
|
const node = pattern.parse(cursor);
|