Skip to content
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

Allow triple quoted strings as format strings for [@]printf #5847

Closed
wants to merge 1 commit into from

Conversation

ivarne
Copy link
Member

@ivarne ivarne commented Feb 18, 2014

This is a temporary hack for #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.

:("""hi""").head

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
@ivarne
Copy link
Member Author

ivarne commented Aug 1, 2014

Closing this now. If there is interest, I might reopen and rebase so that it becomes mergeable again.

@ivarne ivarne closed this Aug 1, 2014
@ivarne
Copy link
Member Author

ivarne commented Aug 1, 2014

Take this as a bump of #2682, to move the indentation removal code into the parser so that triple quoted strings can be parsed as Strings, just as single quoted strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants