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
a =String.reverse ("""first line second line"""++".")
the call's first argument isn't moved to the next line
the operator ++ does not get its own line
the closing paren isn't moved to the next line
A simple solution would be checking whether the range of the multiline string starts and ends on the same line
and considering it multi vs single-line based on that.
I assume the current behavior is to some part intentional because it enables a kind of string interpolation syntax.
If yes, I think making an exception for multi-line strings with just ++ seems okay, while still considering the whole ++ chain as multi-line.
Thanks <3
The text was updated successfully, but these errors were encountered:
Formatting code like below doesn't change it:
++
does not get its own lineA simple solution would be checking whether the range of the multiline string starts and ends on the same line
and considering it multi vs single-line based on that.
I assume the current behavior is to some part intentional because it enables a kind of string interpolation syntax.
If yes, I think making an exception for multi-line strings with just
++
seems okay, while still considering the whole ++ chain as multi-line.Thanks <3
The text was updated successfully, but these errors were encountered: