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

Can't produce a backslace in literal strings #202

Closed
ChengCat opened this issue Oct 3, 2018 · 1 comment
Closed

Can't produce a backslace in literal strings #202

ChengCat opened this issue Oct 3, 2018 · 1 comment

Comments

@ChengCat
Copy link
Contributor

ChengCat commented Oct 3, 2018

(import cstdio)
(def main (fn extern-c int (void)
  (printf "\\")
  0))

With the above code, I expect it print a single backslash \, but a compile error is shown instead:

error: unterminated string literal
@tomhrr
Copy link
Owner

tomhrr commented Oct 11, 2018

Thanks, this has been fixed.

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

No branches or pull requests

2 participants