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

support multiline string? #87

Closed
fonghou opened this issue Sep 20, 2018 · 4 comments
Closed

support multiline string? #87

fonghou opened this issue Sep 20, 2018 · 4 comments

Comments

@fonghou
Copy link

fonghou commented Sep 20, 2018

Hi,

Is it possible to support multiline string? It seems [[...]] can't be used for that anymore, use """ ... """ instead?

Thanks!

@uvtc
Copy link
Contributor

uvtc commented Sep 20, 2018

Is there a reason why:

(var s "this is
a multi-line
string")

couldn't or shouldn't work?

@technomancy
Copy link
Collaborator

@uvtc we should add support for that to the compiler; I believe it is simply an oversight.

In the mean time, it works with backslashes:

(var s "this is\
a multi-line\
string")

@bakpakin
Copy link
Owner

Good suggestion, just pushed an updated for this in commit 9f5c280. It was a very simple change to the parser.

@uvtc
Copy link
Contributor

uvtc commented Sep 20, 2018

Cool!

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

No branches or pull requests

4 participants