durkiewicz / elm-plugin

Elm language support plugin for IntelliJ IDEA.
MIT License
136 stars 15 forks source link

Parser fails on valid function name #58

Closed bgourlie closed 7 years ago

bgourlie commented 7 years ago

Steps to reproduce:

(|.) : String
(|.) =
    "foo"

Result:

elm-parse-error

This breaks some imports, in particular elm-tools/parser

durkiewicz commented 7 years ago

Thanks for reporting. I'll try to fix that soon as it shouldn't be difficult. By the way: perfect example of a meaningful function name :-/

bgourlie commented 7 years ago

Yeah, this function in particular is part of the parser's DSL. In that context at least, it makes sense.

camiel commented 7 years ago

I'm having a similar issue when I open files of the elm-mdl package where a function exists called effect:

effect