clarity-pattern-parser 10.2.3 → 10.2.4

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.2.3",
3
+ "version": "10.2.4",
4
4
  "description": "Parsing Library for Typescript and Javascript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -214,11 +214,13 @@ export class ExpressionPattern implements Pattern {
214
214
  return null;
215
215
  }
216
216
 
217
+
217
218
  let lastUnaryNode: Node | null = null;
218
219
  let lastBinaryNode: Node | null = null;
219
220
  let onIndex = cursor.index;
220
-
221
+
221
222
  outer: while (true) {
223
+ cursor.resolveError();
222
224
  onIndex = cursor.index;
223
225
 
224
226
  for (let i = 0; i < this._unaryPatterns.length; i++) {
@@ -271,6 +273,7 @@ export class ExpressionPattern implements Pattern {
271
273
  cursor.moveTo(onIndex);
272
274
  }
273
275
 
276
+ cursor.resolveError();
274
277
  onIndex = cursor.index;
275
278
  for (let i = 0; i < this._binaryPatterns.length; i++) {
276
279
  cursor.moveTo(onIndex);