| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…n the tokenize module
| } | ||
| if (token.end != NULL && token.end >= it->tok->line_start) { | ||
| end_col_offset = _PyPegen_byte_offset_to_character_offset(line, token.end - it->tok->line_start); | ||
| end_col_offset = _PyPegen_byte_offset_to_character_offset_raw(it->tok->line_start, token.end - it->tok->line_start); |
There was a problem hiding this comment.
it->tok->line_start holds the last line tokenised (the last line of the multi-line string) while line holds the entire multi-line string from the start to the end.
Sorry, something went wrong.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
|
Sorry, @pablogsal, I could not cleanly backport this to 3.12 due to a conflict. cherry_picker a135a6d2c6d503b186695f01efa7eed65611b04e 3.12 |
Sorry, something went wrong.
|
GH-112957 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
…okens in the tokenize module (pythonGH-112949) (cherry picked from commit a135a6d) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
…n the tokenize module (python#112949)
…n the tokenize module (python#112949)
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.