New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support escaping space in string literals using \s
#20110
Comments
Somehow related IntelliJ ticket: |
Scala 2 compiler does not crash.
|
@unkarjedy you have other actors to blame in your stack
I think this is why it's important to keep a "plain scalac" tool. I'm using sdkman currently, and if scala-cli supplants it in that role, then various simple bugs may be due to "other tooling". This is not contingent on any particular tool; anything adjacent to scalac adds points of failure. The bug or impedance mismatch could be anywhere. I can attest that just the plain REPL introduces distortions. Edit: I was actually thinking of scala-cli supplanting scala runner. In this case, I wonder what magic is performed on
|
Also wish to voice my support for |
Sorry to comment further instead of on a scala 2 ticket, but another clue is that it doesn't happen under
Bloop wasn't starting for me with scala-cli 1.1.3, but I fetched 1.2.1 and could reproduce your issue with
I joked once that we no sooner got rid of |
In the end, even though plain scalac doesn't crash itself, it's still the one to blame as it seems. |
That might be appropriate for a Spree? |
Java multiline blocks supports
\s
escape sequence.https://docs.oracle.com/en/java/javase/21/text-blocks/index.html
Scala doesn't support
\s
escape sequence.Scala 2 compiler crashes
Scala 3 compiler says
Given that
\s
is not reserved, the compiler could support by simply replacing with\s
At first glance, this should be trivial to fix.
This wouldn't work in non-interpolated multiline string literals and in raw string literals because they don't support escape sequences.
Still, it could still be a nice addition.
The text was updated successfully, but these errors were encountered: