-
Notifications
You must be signed in to change notification settings - Fork 41
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
Inconsistency in how Q-IDENTs are specified #2612
Comments
Obviously I thus agree that it is simplest to extend Q-CHAR with " and simplify the rules. Having S-ESCAPE separate makes sense to me. BTW: Dymola seems to support |
Cleanups: - Add " to Q-CHAR - Unify Q-IDENT variants Closes modelica#2612
I agree that there doesn't seem to be a compelling reason why the identifiers |
There's an inconsistency in the spec in how Q-IDENTs are specified.
lexicalstructure.tex (Section 2.3.1):
Q-IDENT = "'" { Q-CHAR | S-ESCAPE | """ } "'"
syntax.tex (Appendix B):
Q-IDENT = "'" ( Q-CHAR | S-ESCAPE ) { Q-CHAR | S-ESCAPE | """ } "'"
The former definition allows '' and '"' as Q-IDENTs, the latter does not.
My proposal is to allow '' and '"', I cannot think of a reason to forbid them as the enclosing single quotes are part of the identifier anyway.
Suggested fix:
I found that this was already mentioned in #2408 but neither discussed nor resolved as part of that issue.
The text was updated successfully, but these errors were encountered: