-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
gh-104976: Ensure trailing dedent tokens are emitted as the previous tokenizer #104980
Conversation
pablogsal
commented
May 26, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Consider emitting buffered DEDENT tokens on the last line #104976
7c0113e
to
6db032a
Compare
@pablogsal Can you provide a very quick explanation of how this works and changes the location of the DEDENT token? Nothing too detailed, just a quick overview of the though process, cause I'm having difficulties understanding this. |
Yep: the objective is that inplicit dedents like these:
are reported in the same line as the Unfortunately, this forces us to handle |
Tell me if something else is not clear:) |
Ah wait, I forgot to push some commits 😓 |
Aha! Ok, makes sense now. Thanks for the explanation though, man! |
8a23a18
to
19a58c5
Compare
Sorry for the confusion! 😅 Check again when you have time! |
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.
Yup! Looks good!
…vious tokenizer Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
GH-105000 is a backport of this pull request to the 3.12 branch. |
…vious tokenizer (pythonGH-104980) (cherry picked from commit 46b52e6) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Signed-off-by: Pablo Galindo <pablogsal@gmail.com>