Skip to content

Incorrect (?) rightmostFailurePos w/ Param #527

Open

Description

@pdubroy
  const g = ohm.grammar(`
    G {
      Start = twice<"b">
      twice<x> = x x
    }`);
  const r = g.match('b c');
  t.is(r.getRightmostFailurePosition(), 2);

This fails. The reported (actual) failure position is 1, but I believe it should be 2 (after space skipping).

@alexwarth wdyt?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions