-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Triple-quoted strings treated an expressions in macros #2682
Comments
Yes, I'd say the indentation processing should be moved to the parser like interpolation was. |
This is a temporary hack for JuliaLang#2682, but the proper fix would be to fix the parser to not emit macroall to the AST for triple quoted strings. See: https://groups.google.com/forum/#!topic/julia-users/U1shoGwnCCQ
This is a temporary hack for JuliaLang#2682, but the proper fix would be to fix the parser to not emit macroall to the AST for triple quoted strings. This commit also includes a ugly hack that will error when it is time to remove this fast fix. See: https://groups.google.com/forum/#!topic/julia-users/U1shoGwnCCQ
Marking this as "up for grabs", because it is a pretty annoying issue, and if we are going to fix it, we don't want people to write workaround solutions. As far as I understand the reason for the whole Is this a correct work description? |
Strip out triple-quoted string indentation in the parser, instead of using the mstr macro. Also, no longer treat tabs as 8 spaces. Instead, remove the longest common prefix of spaces and tabs. Fixes #2682
The first call to foo is ASCIIString the second is Expr. This prevents triple-quoted strings from being used as format strings in printf, among other things.
The text was updated successfully, but these errors were encountered: