-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
identifier-char
grammar is invalid
#345
Comments
You know what, I don't know why we ban |
and yeah, we should allow |
oh right. That's why we don't allow I guess this means we need to add some special cases so |
Those should be invalid identifier prefixes in that case, |
oh right, and ...I'm thinking that maybe we should just keep banning and yeah, we should clarify [] |
Right, I'm realizing now it's not even just prefixes, it's those sequences anywhere in the identifier. |
It's too bad. I was really into the idea of supporting |
#352) * fix some confusion in grammar syntax, and actually specify the syntax itself Fixes: #345 * allow ,<> as identifier characters since they no longer need to be reserved * fix typo * disallow more code points and outright ban certain ones from KDL documents altogether (#353) Fixes: #250 * `r` prefix is no longer required for raw strings (#354) Fixes: #337
The fixes for this have been merged into the kdl-v2 branch |
Currently the identifier-char grammar is:
The bit at the end is using a
[...]
character class, but it tries to include[]
characters as well. These presumably need to be escaped somehow.(It's also not clear to me, on inspection, whether the first
\
is actually meant to be a\
char, or if it's escaping the following/
char. This grammar isn't using an official grammar language, so it's not quite clear what the conventions are.)The text was updated successfully, but these errors were encountered: