-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
name 'state' conflict with Python3 runtime. #4312
Conversation
6a129f1
to
75fbbe6
Compare
Hi, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix is incorrect. Please add state
to Python3 and Python2 reservedWords list without touching runtime files.
Also, it looks like state
should be added to JavaScript, TypeScript and Dart reservedWords because CI tests are red: https://github.com/antlr/antlr4/actions/runs/5261330620/jobs/9509322855?pr=4312
75fbbe6
to
3706099
Compare
I think add the name of function or attribute of Parser, lexer to reservedWords is not a good idea. |
5f567f2
to
189c767
Compare
Signed-off-by: cyqw <cyqw@163.com>
189c767
to
cbffcaf
Compare
@KvanTTT @ericvergnaud please review the new changes, thanks |
Sorry, I don't review MR in this repository since I don't have maintainer rights and I can't merge requests. I'm not sure my effort is worth since it's unclear whether a request will be merged or not. |
@parrt blessed |
@parrt kind reminder |
This PR fixes #4291
This change add keyword tests.
add function names in parser as reserved keywords for targets.
use rule.escapedName instead rule.name in php.stg