You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val s = """ this is a string "this is still a string" another quote: " after the quote """
create a String with the content:
this is a string "this is still a string" another quote: " after the quote
This code is highlighted incottectly. this is still a string, and after the quote is not formatted as a string, although they should be. The rule is that single quotes are just part of the string when they are surrounded by triple quotes.
For more context please see this Meta Stack Overflow question.
Which language seems to have the issue?
Scala
Are you using highlight or highlightAuto?
I am not sure. The one that Stack Overflow is using.
Sample Code to Reproduce
val s = """ this is a string "this is still a string" another quote: " after the quote """
Expected behavior s to be string, and not to open code segments in the middle of the string.
Additional context
Nothing I can think of :)
The text was updated successfully, but these errors were encountered:
Describe the issue
For example, the code:
create a String with the content:
This code is highlighted incottectly.
this is still a string
, andafter the quote
is not formatted as a string, although they should be. The rule is that single quotes are just part of the string when they are surrounded by triple quotes.For more context please see this Meta Stack Overflow question.
Which language seems to have the issue?
Scala
Are you using
highlight
orhighlightAuto
?I am not sure. The one that Stack Overflow is using.
Sample Code to Reproduce
Expected behavior
s
to be string, and not to open code segments in the middle of the string.Additional context
Nothing I can think of :)
The text was updated successfully, but these errors were encountered: