You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
moduleMainexposing (..)
type Foo=BarfooToString:Foo->StringfooToString Bar="Bar"
Tree-sitter-elm will say there's a syntax error on line 9, column 13 (the Bar in fooToString Bar.) Changing Bar to _ resolves the problem.
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
The text was updated successfully, but these errors were encountered: