parseman 0.55.2 → 0.55.3

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.
@@ -3585,14 +3585,8 @@ function choice(...args) {
3585
3585
  if (result.committed) return { ok: false, expected, span: { start: pos, end: pos }, committed: true };
3586
3586
  return { ok: false, expected, span: { start: pos, end: pos } };
3587
3587
  }
3588
- return {
3589
- ok: false,
3590
- expected: parsers.flatMap((p) => {
3591
- const r = p.parse(input, pos, ctx);
3592
- return r.ok ? [] : r.expected;
3593
- }),
3594
- span: { start: pos, end: pos }
3595
- };
3588
+ if (ctx._probe !== void 0 || ctx._tolerant) for (const p of parsers) p.parse(input, pos, ctx);
3589
+ return { ok: false, expected: [...scalarExpected], span: { start: pos, end: pos } };
3596
3590
  }
3597
3591
  if (strategy?.tag === "greedyClassify") {
3598
3592
  const superResult = parsers[strategy.superIndex].parse(input, pos, ctx);
@@ -17357,7 +17351,7 @@ function fieldOptionsSrc(def) {
17357
17351
  }
17358
17352
 
17359
17353
  // src/version.ts
17360
- var PARSEMAN_VERSION = "0.55.2";
17354
+ var PARSEMAN_VERSION = "0.55.3";
17361
17355
 
17362
17356
  // src/compiler/compile-linkable-table.ts
17363
17357
  function isLocal(rule) {