Open BrianHicks opened 2 years ago
I can reproduce this.
IntelliJ elm seems to have the same problem.
It's caused by this choice not allowing anything that starts with an uppercase. https://github.com/elm-tooling/tree-sitter-elm/blob/main/grammar.js#L209
https://github.com/klazuka/intellij-elm/blob/master/src/main/grammars/ElmParser.bnf#L185
Hello! I've got something a little weird. I'm making some tools with tree-sitter-elm and found that nullary patterns in function heads will cause a syntax error in tree-sitter-elm, but be accepted by Elm proper. Here's a SSCCE:
Tree-sitter-elm will say there's a syntax error on line 9, column 13 (the
Bar
infooToString Bar
.) ChangingBar
to_
resolves the problem.Here it is in an Ellie, being compiled by Elm: https://ellie-app.com/hST6r7VtQjKa1