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.js CHANGED
@@ -3053,6 +3053,9 @@ class ExpressionPattern {
3053
3053
  break;
3054
3054
  }
3055
3055
  onIndex = cursor.index;
3056
+ if (prefix != null && this._recursivePatterns.length === 0) {
3057
+ lastAtomNode = createNode(prefixName, [prefix, lastAtomNode]);
3058
+ }
3056
3059
  for (let i = 0; i < this._recursivePatterns.length; i++) {
3057
3060
  const pattern = this._recursivePatterns[i];
3058
3061
  const node = pattern.parse(cursor);