nikku/lezer-feel

Partial `QuantifiedExpression` is incorrectly matched

nikku opened this issue · 0 comments

nikku commented

Describe the Bug

The expression some a in b satisfies is matched as some a in [b satisfies] whereas b satisfies is treated as a Name rather than treating satisfies as a keyword, resulting in this tree:

Expression [0, 22]
  QuantifiedExpression [0, 22]
    InExpressions [5, 22]
      InExpression [5, 22]
        Name [5, 6]
        VariableName [10, 21]
        ERROR [22, 22]

Steps to Reproduce

  1. Open in playground
  2. See broken tree + error

Expected Behavior

satisfies is correctly matched as a contextual keyword.
This is already the case for return in ForExpression.

Environment

  • Host (Browser/Node version), if applicable: any
  • OS: any
  • Library version: v1.2.0