-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-33204: IDLE - revise and extend colorizer test #6347
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
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.
Would be worth to test also elif
followed by a string literal. or
, if
and elif
are the only keywords that can precede a literal string in syntactically correct code.
Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7. |
GH-6348 is a backport of this pull request to the 3.7 branch. |
Followup to primary PR for the issue, pythonGH-6344. (cherry picked from commit 55966f3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Followup to primary PR for the issue, pythonGH-6344. (cherry picked from commit 55966f3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
GH-6349 is a backport of this pull request to the 3.6 branch. |
I think not. If the re correctly splits one combination correctly, there is no reason it should not do the same with all similar combinations. " and'' " is also legal, as are " ''and'' " and " ''or'' ". I should better think about covering things that could independently fail, like multiline strings, and automating the test. |
Only these three keywords end with legal string prefixes ( |
https://bugs.python.org/issue33204