-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Line continuation character inside string macros does not continue lines #55885
Comments
It's not specific to julia> macro foo_str(s)
show(s)
end
@foo_str (macro with 1 method)
julia> foo"hello \
world"
"hello \\\n world" |
@lazy_str
does not continue lines
Good catch; updated title to reflect this. |
There is no line continuation character for string macros, so that title isn't quite right either, as something that doesn't exist cannot be blamed for not working. The main thing this may want is to replace the content of lazy string with the content mangled according to calling |
Makes sense; feel free to update title to something more precise. |
It seems unlikely that relatively recent string macros like |
The
@lazy_str
macro behaves differently from ordinary strings when using the line continuation character\
:Apart from interpreting the line-continuation character as a "raw" backslash (and consequently also inserting a line-break),
lazy"..."
also doesn't ignore the white-space on the following line. This seems unintended and undesirable.The text was updated successfully, but these errors were encountered: