| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| in_string = 0; // Whether we're currently inside a string | ||
| string_quote = 0; // The quote character for current string (' or ") | ||
|
|
||
| // Process each character of input |
There was a problem hiding this comment.
@lysnikolaou please read this carefully. I am mostly sure its correct but it really needs some extra eyes
Sorry, something went wrong.
There was a problem hiding this comment.
Yeah, I was thinking something very similar as a solution, too! I found one problem, but it looks good otherwise.
Sorry, something went wrong.
|
When you're done making the requested changes, leave the comment: I have made the requested changes; please review again. |
Sorry, something went wrong.
There was a problem hiding this comment.
This looks good now! Thanks @pablogsal!
I left a couple of inline comments for some very minor improvements.
Sorry, something went wrong.
| if (!in_string) { | ||
| in_string = 1; | ||
| quote_char = ch; | ||
| } | ||
| else if (ch == quote_char) { | ||
| in_string = 0; | ||
| } |
There was a problem hiding this comment.
This only works because there's always an odd number of quotes in a STRING token and we're sure that all STRING tokens will be valid at this point. Maybe add a comment to explain that?
Sorry, something went wrong.
| char quote_char = 0; | ||
| char string_quote = 0; |
There was a problem hiding this comment.
Do we need both of these?
Sorry, something went wrong.
|
@pablogsal Ping here. Will we be able to get thins into 3.13 before the rc release? If you don't have time to work on it, I'm okay taking it over. |
Sorry, something went wrong.
|
I am travelling today :( If you want and have the time you can push the fixes to the PR and land it but if you don't have time maybe I can get to it at night. |
Sorry, something went wrong.
There was a problem hiding this comment.
Pushed a commit with a couple of additions. LGTM now! Let's merge it.
Sorry, something went wrong.
|
Are we backporting this? |
Sorry, something went wrong.
|
We should indeed |
Sorry, something went wrong.
|
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
|
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, something went wrong.
|
Sorry, @pablogsal, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker ef66fb597ba909ead2fbfc06f748aa7b7e9ea437 3.13 |
Sorry, something went wrong.
… expressions (pythonGH-135198) (cherry picked from commit ef66fb5) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
|
GH-136720 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-136899 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…d debug expressions (pythonGH-135198) (python#136720)
| 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.