-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
bpo-44010: IDLE: colorize pattern-matching soft keywords #25851
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
7f193fa
modernize ColorDelegator.recolorize_main() code
taleinat 1b4f728
add htest source example for pattern-matching
taleinat f977c50
initial implementation of pattern-matching soft-keyword colorization
taleinat df1c1a5
additional test cases for pattern-matching soft keyword colorization
taleinat 816ea8d
remove dead code comment
taleinat 146bf70
also ignore match/case immediately followed by )]}
taleinat ff463a6
simplify regexps using re.MULTILINE + more test cases
taleinat 9758870
refactor and mark all lone underscores in case patterns as keywords
taleinat 4adc318
fix comments in htest code sample
taleinat 1d9ce7f
handle case guard and capture patterns
taleinat 21c2f79
use single example source in tests
taleinat 288fea3
fix highlighting in case guard and capture patterns
taleinat 2988693
add a NEWS entry
taleinat c6015dc
more tests for function defs
taleinat 68d41fe
improved doc-strings and indentation as per code review
taleinat 12b7dd5
add test with long multi-line string at beginning of text
taleinat 4bdbe2a
remove unused import
taleinat d550c0f
add more reference links in NEWS entry
taleinat ee98cf3
simplify handling of case softkw, and bring back specific handling of…
taleinat 9a34c3b
add test simulating typing and deleting
taleinat 25dfd1a
fix highlighting of underscore in case, and its tests
taleinat 1c87c8a
avoid highlighting match and case in more scenarios (+ tests)
taleinat 78980da
add info in idle help about soft keyword highlighting
taleinat 5748063
clean up _assert_highlighting and add a doc-string
taleinat 6c0f5c2
refactor mocking of notify_range() with _assert_highlighting
taleinat 4b2b8d7
refactor another test to use _assert_highlighting()
taleinat 99a67f6
update coverage percentage at head of test file
taleinat fae9905
Merge remote-tracking branch 'upstream/main' into idle-colorize-soft-…
taleinat b991d56
add a What's New entry
taleinat 8b4f201
improve wording in NEWS, What's New and docs, and update help.html
taleinat ae3e7e1
remove dead code, recently added but no longer used
taleinat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.