elm / compiler

Compiler for Elm, a functional language for reliable webapps.
https://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
7.48k stars 659 forks source link

elm repl can't have empty line in multiline comments #2267

Open setop opened 2 years ago

setop commented 2 years ago

Quick Summary: ???

SSCCE

In elm repl

2+2
{- comment

-}
3+3

returns a ENDLESS COMMENT error.

It seems an empty line is considered as a end of comment. This is not convenient. And not consistent elm make

Additional Details

Without comment

With

2+2
3+3

I get

> 4 : number
> 6 : number

With comment

With

2+2
{- a multiline comment
-}
3+3

I get no error but only

> 4 : number
github-actions[bot] commented 2 years ago

Thanks for reporting this! To set expectations:

Finally, please be patient with the core team. They are trying their best with limited resources.