-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Fix lookahead of soft keywords in the PEG parser #20436
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
Conversation
I was playing a bit with the feature and realized that we missed the lookahead code. |
a4c9940
to
caeaa31
Compare
When were soft keywords added? I can't remember us implementing that. |
|
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.
Okay, everything else LGTM. I now remember noticing this (during my hack to add a print
statement) and thinking "oh, I need to add _PyPegen_lookahead_with_string
" -- and then forgetting about it.
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.
Thanks!
Nice. |
There's one caveat: we need to remind people to use |
That could be on the "new parser guide" on the dev guide. I was preparing something for that, but I am currently waiting to see how we want to approach #19969 first. |
@pablogsal: Status check is done, and it's a success ✅ . |
Automerge-Triggered-By: @gvanrossum