-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Revisit Characters Allowed in Identifiers #41
Comments
After taking a look on:
I started experiment with regex I found in
compiles to:
compiles to:
Are these translations correct? |
Looks good! Note I would omit the stopping Please follow with pull requests both on Thank you! |
Not so fast. I ran |
Careful about POSIX regex and escaping. The Also because of the Media Type definition after symbol (as in https://github.com/apiaryio/snowcrash/blob/master/src/PayloadParser.h#L29) we will need to unfortunately exclude So you might end up with something like #define SYMBOL_IDENTIFIER "([^][()]+)" After that only |
Identifiers limitations tend to feel way too restrictive.
Reduce the non allowed characters to minimum. This should allow use of unicode (national) characters in Resource and Action identifiers. Consider banning
[
and]
only.The text was updated successfully, but these errors were encountered: