Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect error locations for some syntax errors which refmt gets right #19

Open
3 tasks
hcarty opened this issue Apr 3, 2019 · 1 comment
Open
3 tasks

Comments

@hcarty
Copy link

hcarty commented Apr 3, 2019

Tested with esy and Reason 3.4.0.

  • Wrong arrow in pattern matching case (-> instead of =>). refmt gets the error location correct.
let f = x =>
  switch x {
  | () -> /* Error should be at this arrow*/ ()
  }; /* Error shows up at the end of the file */
  • Incomplete function definition. refmt says there's an error at the start of line 2, which is reasonable. vim-reasonml marks the l in let and simply has the message invalidCharacter.orComment.orString
let f = x =>
  • let where it doesn't belong. Same error/issue as the previous example.
let f = () =>
  let
@hcarty
Copy link
Author

hcarty commented Apr 3, 2019

I'll add more as I find them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant