elm-plugin icon indicating copy to clipboard operation
elm-plugin copied to clipboard

Parser fails on valid function name

Open bgourlie opened this issue 9 years ago • 3 comments

Steps to reproduce:

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

Result:

elm-parse-error

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

bgourlie avatar Mar 03 '17 18:03 bgourlie

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 :-/

durkiewicz avatar Mar 04 '17 19:03 durkiewicz

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

bgourlie avatar Mar 04 '17 20:03 bgourlie

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

effect

camiel avatar Mar 05 '17 20:03 camiel