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

multi-line strings do not terminate properly #398

Closed
processing-bot opened this issue Feb 9, 2022 · 4 comments
Closed

multi-line strings do not terminate properly #398

processing-bot opened this issue Feb 9, 2022 · 4 comments

Comments

@processing-bot
Copy link
Collaborator

Created by: scudly

If you attempt to create a pair of multi-line strings, they are both merged into one string:

String foo = """
hi
bye
""";

String bar = """
wee
woo
""";

println( foo );

generates

hi
bye
""";

String bar = """
wee
woo

and the variable "bar" does not exist.

The expected behavior is that foo and bar should each be a double-line string. "foo" should terminate with the """ line immediately below "bye". Multi-line strings should terminate at the first line that contains """.

@processing-bot
Copy link
Collaborator Author

Created by: sampottinger

😑

@processing-bot
Copy link
Collaborator Author

Created by: sampottinger

Sorry about that @benfry - the rule there was unhelpfully greedy. I’ll fix.

@processing-bot
Copy link
Collaborator Author

Created by: sampottinger

Just confirming that #400 will fix... Apologies...

Screen Shot 2022-02-10 at 8 45 46 AM

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant