parseman 0.58.0 → 0.58.1
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 +4 -3
- package/dist/analysis/diagnostics.js.map +1 -1
- package/dist/cli/index.js +4 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.js +5 -4
- package/dist/plugin/index.js.map +1 -1
- package/dist/run/index.d.ts +2 -0
- package/dist/run/index.d.ts.map +1 -1
- package/dist/run/index.js +9 -0
- package/dist/run/index.js.map +1 -1
- package/dist/table/encode.d.ts.map +1 -1
- package/dist/table/index.js +4 -3
- package/dist/table/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/run/index.ts +5 -0
- package/src/table/encode.ts +11 -8
- package/src/version.ts +1 -1
|
@@ -7705,12 +7705,13 @@ var Encoder = class {
|
|
|
7705
7705
|
const rr = this.refResolver();
|
|
7706
7706
|
const { next, boundary } = follow;
|
|
7707
7707
|
if (matchesEmpty(next, /* @__PURE__ */ new Set(), rr) || mayCommitFailure(next, rr, this.commitFailureMemo)) return void 0;
|
|
7708
|
-
const
|
|
7709
|
-
if (
|
|
7708
|
+
const nextDef = next._def;
|
|
7709
|
+
if (nextDef.tag !== "literal" && nextDef.tag !== "regex" && nextDef.tag !== "keywords" && nextDef.tag !== "label") return void 0;
|
|
7710
7710
|
const first = firstSetOf(next, /* @__PURE__ */ new Set(), rr, boundary);
|
|
7711
7711
|
const cls = this.charClass(boundary === void 0 ? first : union(first, firstSetOf(boundary, /* @__PURE__ */ new Set(), rr)));
|
|
7712
7712
|
if (cls < 0) return void 0;
|
|
7713
|
-
|
|
7713
|
+
const miss = nextDef.tag === "label" ? deriveExpected(next) : directTerminalFailureExpected(nextDef);
|
|
7714
|
+
return { cls, fx: this.expected(miss) };
|
|
7714
7715
|
}
|
|
7715
7716
|
node(p) {
|
|
7716
7717
|
const lazyRef = p._def.tag === "lazy";
|