effekt icon indicating copy to clipboard operation
effekt copied to clipboard

Escaping newlines in single-line strings

Open jiribenes opened this issue 11 months ago • 1 comments

Continuing the discussion from #410, do we actually want to be able to escape newlines like this:

val myString = "let's say I want to \
continue on the other line"      // ^ escapes a newline

// ~> myString = "let's say I want to continue on the other line"

Personally, I'm completely fine to forbid this, especially since we have multiple-line strings as of #410.

jiribenes avatar Mar 22 '24 10:03 jiribenes

Additional comment: If we want this, this is broken on Windows (see #442).

marzipankaiser avatar Jun 03 '24 13:06 marzipankaiser

This was resolved by the new lexer #435, such strings are no longer supported.

jiribenes avatar Sep 25 '24 15:09 jiribenes