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

Double backslash for escaped characters #510

Closed
jhamrsky opened this issue Dec 11, 2017 · 1 comment
Closed

Double backslash for escaped characters #510

jhamrsky opened this issue Dec 11, 2017 · 1 comment

Comments

@jhamrsky
Copy link

ABNF specifies escaped characters as

escaped = escape escape-seq-char
escape = %x5C                          ; \
escape-seq-char =  escape %x22         ; "
...

but that would (AFAIK) mean, that for escaped characters user needs to write two backslashes (because escape is in fact present twice). This is somewhat in contradiction to samples available, where only one backslash is used (eg. "I'm a string. \"You can quote me\" .. ").

Is this intended or there is some part explaining that I am wrong about this one?

@mojombo
Copy link
Member

mojombo commented Dec 11, 2017

Indeed, that is a mistake in the ABNF. Good catch, I'll get it fixed.

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

3 participants