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

Macro: fails with a string that ends with a backslash #8064

Open
maiha opened this issue Aug 8, 2019 · 0 comments
Open

Macro: fails with a string that ends with a backslash #8064

maiha opened this issue Aug 8, 2019 · 0 comments

Comments

@maiha
Copy link
Contributor

maiha commented Aug 8, 2019

minimum code

macro foo
  "\\"
end
$ crystal test.cr
In test.cr:1:7

 1 | macro foo
           ^
Error: unterminated macro

It fails in all versions 0.27.2, ... , 0.30.0.

FYI

Since it works with "\\a", it simply looks like a parsing problem.

Best regards,

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

2 participants