| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:eed26432-7b22-23ac-52bc-1263a24a4b78 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D88A:B8D80:4A96739:666E136:6995EAF7 |
| html-safe-nonce | 24daa14fcf3be075b8cad661d49978e0394aeec0430b6566026bbb32f43a4546 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODhBOkI4RDgwOjRBOTY3Mzk6NjY2RTEzNjo2OTk1RUFGNyIsInZpc2l0b3JfaWQiOiI5MjE2NzU4MTMyNTg3NzUyMTgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 387de0e81526b66a4a55ad4882f80e3864697c01dc88d843ca0b23738358af2b |
| hovercard-subject-tag | pull_request:2493591184 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
| twitter:image | https://avatars.githubusercontent.com/u/55281?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/55281?s=400&v=4 |
| og:image:alt | This is a much improved version of gh-131562. It uses the tokenizer for better speed and pattern matching for more robust handling of soft keywords. While it still won't hit all cases correctly... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1161b1e91d57e776171599ebe7c3b8c4690792d1e87e83b5c77a9b1aeb391094 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a8c6902042885fe21ac3491e553d741a50765a66 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F133247%2Fcommits%2Fb1f25575410086cd7fff0ae4881c5b3b360006a6 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F133247%2Fcommits%2Fb1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
| Reload | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
| Reload | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.6k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| ambv | https://github.com/ambv |
| python:main | https://github.com/python/cpython/tree/main |
| ambv:pyrepl-syntax-highlighting-tokens | https://github.com/ambv/cpython/tree/pyrepl-syntax-highlighting-tokens |
|
Conversation
59
| https://github.com/python/cpython/pull/133247 |
|
Commits
23
| https://github.com/python/cpython/pull/133247/commits |
|
Checks
46
| https://github.com/python/cpython/pull/133247/checks |
|
Files changed
| https://github.com/python/cpython/pull/133247/files |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
gh-131507: Add support for syntax highlighting in PyREPL
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#top |
|
Show all changes
23 commits
| https://github.com/python/cpython/pull/133247/files |
|
e921a80
gh-131507: Add support for syntax highlighting in PyREPL
ambv Mar 18, 2025
| https://github.com/python/cpython/pull/133247/commits/e921a809b2fcb802742eb58d704577ab55c92cba |
|
fb95911
Add Blurb
ambv Mar 21, 2025
| https://github.com/python/cpython/pull/133247/commits/fb95911d044b4ed85ea244868f133f4a7d908263 |
|
b428513
Fix irrelevant Windows tests
ambv Mar 21, 2025
| https://github.com/python/cpython/pull/133247/commits/b428513fbab0b8513ec58f7ab1cf14633669f5dc |
|
2bdcd06
Replace idlelib.colorizer with a faster solution
ambv Apr 29, 2025
| https://github.com/python/cpython/pull/133247/commits/2bdcd06c37c5364aa53b9fb334748fdda52a0983 |
|
8c70c45
Slurp the entire input buffer before refreshing display during bracke…
ambv Apr 29, 2025
| https://github.com/python/cpython/pull/133247/commits/8c70c4587287dec51aa1756b0a16d3652a96b428 |
|
4d7ae36
Implement getpending() on Windows
ambv Apr 29, 2025
| https://github.com/python/cpython/pull/133247/commits/4d7ae3658260d973c3da4936131acd854043217c |
|
9585bd6
Adapt tests
ambv Apr 29, 2025
| https://github.com/python/cpython/pull/133247/commits/9585bd6bb271cfc5362ee162e43be70e1dc42f67 |
|
b1f2557
Support soft keywords (fight fire with fire)
ambv Apr 30, 2025
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
01e1129
Fix test
ambv Apr 30, 2025
| https://github.com/python/cpython/pull/133247/commits/01e1129886a1d9b55f9649abe990fea594d35d4b |
|
20eff49
Remove unnecessary import
ambv Apr 30, 2025
| https://github.com/python/cpython/pull/133247/commits/20eff49682075da3862ae933c4a06e8923122219 |
|
8d3648a
Add test for prev_next_window
ambv Apr 30, 2025
| https://github.com/python/cpython/pull/133247/commits/8d3648a080dde06083c0f4bedcf286e6df8c3042 |
|
656fea3
Windows: bracketed pasting of 448692 chars done in 2.38s ✊
ambv May 1, 2025
| https://github.com/python/cpython/pull/133247/commits/656fea32bc4696f8d741aa818a182e1a07c7f7ab |
|
dac8961
Remove colors from Windows low-level console tests
ambv May 1, 2025
| https://github.com/python/cpython/pull/133247/commits/dac896144c163a5308108af0faa4c62d498d76d5 |
|
7891fa7
Fix lint and stuff
ambv May 1, 2025
| https://github.com/python/cpython/pull/133247/commits/7891fa7937e62728458f6a06f49acaec94e51310 |
|
362a21b
Add experimental theming support for syntax highlighting and the prompt
ambv May 1, 2025
| https://github.com/python/cpython/pull/133247/commits/362a21b324e6b90247e898aa00b83c9323aafbb3 |
|
ffebbbe
Fix lint
ambv May 1, 2025
| https://github.com/python/cpython/pull/133247/commits/ffebbbe3d2df946daf1fd68fd0b7800cb9201a29 |
|
388e494
Merge branch 'main' into pyrepl-syntax-highlighting-tokens
ambv May 1, 2025
| https://github.com/python/cpython/pull/133247/commits/388e4945f292e8e75c4d87accdf5e9679f0c863c |
|
9b60382
Add t-string support to syntax highlighting
ambv May 1, 2025
| https://github.com/python/cpython/pull/133247/commits/9b603826f6063b1deb534fc169f9170be5fe3f84 |
|
f835dba
Apply suggestions from code review
ambv May 2, 2025
| https://github.com/python/cpython/pull/133247/commits/f835dba6e548d3e94205ee617c611efcc30c40de |
|
9003d05
Add _colorize.ANSIColors.BOLD
ambv May 2, 2025
| https://github.com/python/cpython/pull/133247/commits/9003d05eb17ff28da2ffacba01c7479a8fe0fef7 |
|
ff1f92b
Remove - and + from first sets matching for `match`
ambv May 2, 2025
| https://github.com/python/cpython/pull/133247/commits/ff1f92bf10c2341b9abfa16071bf42803aac16e3 |
|
bd84cd8
Address Pablo's review
ambv May 2, 2025
| https://github.com/python/cpython/pull/133247/commits/bd84cd89f64614804fb38f10e236fa9823a1fdd5 |
|
080f300
Exclude applying soft keywords inside any bracket pairs, not just par…
ambv May 2, 2025
| https://github.com/python/cpython/pull/133247/commits/080f3006cb01b06821a9df95f3eb0b6d7127e5c6 |
|
Clear filters
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
utils.py
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
windows_console.py
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-77cdde1442e2d3a5fe5ee852304d1af6d0a2033e718dc588552d61596cb72100 |
|
Prev
| https://github.com/python/cpython/pull/133247/commits/9585bd6bb271cfc5362ee162e43be70e1dc42f67 |
|
Next
| https://github.com/python/cpython/pull/133247/commits/01e1129886a1d9b55f9649abe990fea594d35d4b |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
| https://github.com/ambv |
| ambv | https://github.com/python/cpython/commits?author=ambv |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L558 |
| Lib/_pyrepl/utils.py | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
View file
| https://github.com/ambv/cpython/blob/b1f25575410086cd7fff0ae4881c5b3b360006a6/Lib/_pyrepl/utils.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/133247/commits/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686 |
| Please reload this page | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L558 |
| Lib/_pyrepl/windows_console.py | https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-77cdde1442e2d3a5fe5ee852304d1af6d0a2033e718dc588552d61596cb72100 |
|
View file
| https://github.com/ambv/cpython/blob/b1f25575410086cd7fff0ae4881c5b3b360006a6/Lib/_pyrepl/windows_console.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/133247/commits/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-77cdde1442e2d3a5fe5ee852304d1af6d0a2033e718dc588552d61596cb72100 |
|
| https://github.com/python/cpython/pull/133247/commits/b1f25575410086cd7fff0ae4881c5b3b360006a6#diff-77cdde1442e2d3a5fe5ee852304d1af6d0a2033e718dc588552d61596cb72100 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |