Skip to content

Incorrect (?) rightmostFailurePos w/ Param #527

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions