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/cli/index.js CHANGED
@@ -7850,12 +7850,13 @@ var Encoder = class {
7850
7850
  const rr = this.refResolver();
7851
7851
  const { next, boundary } = follow;
7852
7852
  if (matchesEmpty(next, /* @__PURE__ */ new Set(), rr) || mayCommitFailure(next, rr, this.commitFailureMemo)) return void 0;
7853
- const nextTag = next._def.tag;
7854
- if (nextTag !== "literal" && nextTag !== "regex" && nextTag !== "keywords" && nextTag !== "label") return void 0;
7853
+ const nextDef = next._def;
7854
+ if (nextDef.tag !== "literal" && nextDef.tag !== "regex" && nextDef.tag !== "keywords" && nextDef.tag !== "label") return void 0;
7855
7855
  const first = firstSetOf(next, /* @__PURE__ */ new Set(), rr, boundary);
7856
7856
  const cls = this.charClass(boundary === void 0 ? first : union(first, firstSetOf(boundary, /* @__PURE__ */ new Set(), rr)));
7857
7857
  if (cls < 0) return void 0;
7858
- return { cls, fx: this.expected(deriveExpected(next)) };
7858
+ const miss = nextDef.tag === "label" ? deriveExpected(next) : directTerminalFailureExpected(nextDef);
7859
+ return { cls, fx: this.expected(miss) };
7859
7860
  }
7860
7861
  node(p) {
7861
7862
  const lazyRef = p._def.tag === "lazy";