-
Notifications
You must be signed in to change notification settings - Fork 36
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
Incorrect syntax highlighting with single quotes #260
Comments
|
@som-snytt intellij seems to not be complaining - Guess I forgot to mention but this is scala 2.12.x ![]() |
https://scastie.scala-lang.org/ubVQfrgwSgyB3LWIa0x77A also seems to not complain |
yes, it was a bug in 2.12. I remember the fix was deferred to a major release. Actually github says 2.12.3. Oh wait, "Enforcement is under https://scastie.scala-lang.org/2NAOmTP4SZeZHft2rRlYvQ |
We should add a special rule to allow |
The caution is that people accustomed to other languages have various assumptions about quote marks, such as that they introduce strings. If you allow this syntax, then you must explain that Since the need is rare, it's not burdensome to write |
i see @som-snytt thanks for the clarification - now that seems interesting and maybe we can swap usage of |
is highlighted incorrectly and
'''
is assumed to start a string instead of being the string itself whereasis correctly highlighted
The text was updated successfully, but these errors were encountered: