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