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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarity-pattern-parser",
3
- "version": "10.3.5",
3
+ "version": "10.3.6",
4
4
  "description": "Parsing Library for Typescript and Javascript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -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);