stil4m / elm-syntax

Elm syntax in Elm
MIT License
92 stars 26 forks source link

Add test case for field access vs application precedence #215

Closed jfmengels closed 2 days ago

jfmengels commented 6 days ago

I found a few regressions in the pratt-parser branch, so I've written tests for them.

  1. Trailing comments at the end of a declaration are a syntax error.
  2. f -g a is incorrectly parsed as f - (g a) instead of as f (-g) a
  3. foo a.field is incorrectly parsed as (foo a).field instead of as foo (a.field)

cc @jiegillet