-
Notifications
You must be signed in to change notification settings - Fork 148
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
backslashes break gore's scanner #17
Comments
It's because gore enters line-continuation mode if it fails to parse input. What is your expected behavior? As you may already know, for string literals you must surround them by
|
That explains it :P I was expecting an error. |
Got the point. I have currently no idea with this problem. |
The reason I ask is because I'm writing a CLI app too, and I wanted to see how you handle backslashes. For my app, all backslashes outside of quotes are literals, and backslashes within quotes always escape the character after, which you can see here. Where do you parse CLI input? I'd like to take a look. |
This issue is resolved now. |
Only a couple escape sequences are valid: https://golang.org/ref/spec#Rune_literals
The text was updated successfully, but these errors were encountered: