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.
- package/dist/analysis/diagnostics.js +2 -8
- package/dist/analysis/diagnostics.js.map +1 -1
- package/dist/cli/index.js +2 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/combinators/choice.d.ts.map +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.js +3 -9
- package/dist/plugin/index.js.map +1 -1
- package/dist/table/index.js +2 -8
- package/dist/table/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/combinators/choice.ts +8 -10
- package/src/version.ts +1 -1
package/dist/plugin/index.js
CHANGED
|
@@ -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
|
-
|
|
3589
|
-
|
|
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.
|
|
17354
|
+
var PARSEMAN_VERSION = "0.55.3";
|
|
17361
17355
|
|
|
17362
17356
|
// src/compiler/compile-linkable-table.ts
|
|
17363
17357
|
function isLocal(rule) {
|