René's URL Explorer Experiment


Title: Add support for Python 3.6 f-string literal, underscore in numbers, and Python 3.5 type annotations by achimnol · Pull Request #60 · hdima/python-syntax · GitHub

Open Graph Title: Add support for Python 3.6 f-string literal, underscore in numbers, and Python 3.5 type annotations by achimnol · Pull Request #60 · hdima/python-syntax

X Title: Add support for Python 3.6 f-string literal, underscore in numbers, and Python 3.5 type annotations by achimnol · Pull Request #60 · hdima/python-syntax

Description: PR for #58 and #59. Finally I figured out how to "embed" other syntax inside a region using syn cluster. Python keywords, numbers, booleans, and builtins are highlighted inside f-string braced regions. I tried to prevent the content inside braces from being highlighted as "Special" while keeping the braces and format string highlighted, but could not separate them. Still, I think this version much improves readability. Comments, optimizations, and fixes are welcome.

Open Graph Description: PR for #58 and #59. Finally I figured out how to "embed" other syntax inside a region using syn cluster. Python keywords, numbers, booleans, and builtins are highlighted inside f-string b...

X Description: PR for #58 and #59. Finally I figured out how to "embed" other syntax inside a region using syn cluster. Python keywords, numbers, booleans, and builtins are highlighted inside f-...

Opengraph URL: https://github.com/hdima/python-syntax/pull/60

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:15f26063-2bb9-defa-e876-c1ca253260c9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBFFE:208D69:87B0D7:BC5E76:699752F0
html-safe-nonce5269a7eee46a79028de933c3e1f43702192a99f202988e54b02bfb3d563467f9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkZFOjIwOEQ2OTo4N0IwRDc6QkM1RTc2OjY5OTc1MkYwIiwidmlzaXRvcl9pZCI6IjM4NTI2NzY0Nzc4MzU4ODU5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac63d1c8462351ac2eb664f577e5d99966850aa7545709c7302efdcd726153c510
hovercard-subject-tagpull_request:95308454
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378
twitter:imagehttps://avatars.githubusercontent.com/u/555156?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/555156?s=400&v=4
og:image:altPR for #58 and #59. Finally I figured out how to "embed" other syntax inside a region using syn cluster. Python keywords, numbers, booleans, and builtins are highlighted inside f-string b...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec2f6b9675e9141deef3eda21e5cb896d461bd4d25aeaeeba804502ef0e8d01f2
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/hdima/python-syntax git https://github.com/hdima/python-syntax.git
octolytics-dimension-user_id160338
octolytics-dimension-user_loginhdima
octolytics-dimension-repository_id10018894
octolytics-dimension-repository_nwohdima/python-syntax
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id10018894
octolytics-dimension-repository_network_root_nwohdima/python-syntax
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06ceed63f0d4941788d6c52a00d38ad77b6eaf89
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fhdima%2Fpython-syntax%2Fpull%2F60%2Fcommits%2F4f194e77311703837dfcbf39a9ca223344951378
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2Fhdima%2Fpython-syntax%2Fpull%2F60%2Fcommits%2F4f194e77311703837dfcbf39a9ca223344951378
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=hdima%2Fpython-syntax
Reloadhttps://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378
Reloadhttps://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378
Reloadhttps://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378
hdima https://github.com/hdima
python-syntaxhttps://github.com/hdima/python-syntax
Notifications https://github.com/login?return_to=%2Fhdima%2Fpython-syntax
Fork 106 https://github.com/login?return_to=%2Fhdima%2Fpython-syntax
Star 362 https://github.com/login?return_to=%2Fhdima%2Fpython-syntax
Code https://github.com/hdima/python-syntax
Issues 14 https://github.com/hdima/python-syntax/issues
Pull requests 9 https://github.com/hdima/python-syntax/pulls
Actions https://github.com/hdima/python-syntax/actions
Projects 0 https://github.com/hdima/python-syntax/projects
Wiki https://github.com/hdima/python-syntax/wiki
Security 0 https://github.com/hdima/python-syntax/security
Insights https://github.com/hdima/python-syntax/pulse
Code https://github.com/hdima/python-syntax
Issues https://github.com/hdima/python-syntax/issues
Pull requests https://github.com/hdima/python-syntax/pulls
Actions https://github.com/hdima/python-syntax/actions
Projects https://github.com/hdima/python-syntax/projects
Wiki https://github.com/hdima/python-syntax/wiki
Security https://github.com/hdima/python-syntax/security
Insights https://github.com/hdima/python-syntax/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fhdima%2Fpython-syntax%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fhdima%2Fpython-syntax%2Fissues%2Fnew%2Fchoose
achimnolhttps://github.com/achimnol
hdima:masterhttps://github.com/hdima/python-syntax/tree/master
achimnol:masterhttps://github.com/achimnol/python-syntax/tree/master
Conversation 11 https://github.com/hdima/python-syntax/pull/60
Commits 23 https://github.com/hdima/python-syntax/pull/60/commits
Checks 0 https://github.com/hdima/python-syntax/pull/60/checks
Files changed https://github.com/hdima/python-syntax/pull/60/files
Please reload this pagehttps://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378
Add support for Python 3.6 f-string literal, underscore in numbers, and Python 3.5 type annotations https://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378#top
Show all changes 23 commits https://github.com/hdima/python-syntax/pull/60/files
84f5cf9 narrow decorator match to exclude matrix multiplication jhrmnn Jan 13, 2016 https://github.com/hdima/python-syntax/pull/60/commits/84f5cf9ce6438ac40512a05426d943497921ee96
ddbd84e More efficient regex jhrmnn Jan 18, 2016 https://github.com/hdima/python-syntax/pull/60/commits/ddbd84e7b8b437bc926ac28850b2ca8068488a93
60a7b5c Mark None as Python builtin object along with True and False Feb 27, 2015 https://github.com/hdima/python-syntax/pull/60/commits/60a7b5c3d2e23d52175b855a84a91bc8aca58c24
e07541a Add support for Python 3.6 f-string literal and underscore in numbers. achimnol Nov 25, 2016 https://github.com/hdima/python-syntax/pull/60/commits/e07541aa596f4036c8d1f78b259e2318b88641bc
eb44ea7 Fix pythonNumberError patterns to exclude legitimate identifiers. achimnol Nov 25, 2016 https://github.com/hdima/python-syntax/pull/60/commits/eb44ea7304700d4272c0b64990e35744fda0a4b4
8692c37 Merge "Add support for Python 3.6 f-string literal and underscore in … lilydjwg Dec 9, 2016 https://github.com/hdima/python-syntax/pull/60/commits/8692c37f91ab8ec44943eb402e3490aae78fe1c9
9bd9cbc Merge "Mark None as Python builtin object along with True and False" lilydjwg Dec 9, 2016 https://github.com/hdima/python-syntax/pull/60/commits/9bd9cbca8b31e13fa2b8e2b00110d79d046a84fe
af6a827 Merge "narrow decorator match to exclude matrix multiplication" lilydjwg Dec 9, 2016 https://github.com/hdima/python-syntax/pull/60/commits/af6a8275a54d98d8de71202e08a4c2e6167e3edb
738e118 support for async keyword lilydjwg Dec 9, 2016 https://github.com/hdima/python-syntax/pull/60/commits/738e118831485a7c564ac2350e7cdafa80fdaecb
67c13cf Merge remote-tracking branch 'lilydjwg/master' achimnol Jun 2, 2017 https://github.com/hdima/python-syntax/pull/60/commits/67c13cffa5886ac5b285e31eee8c168dc814efba
31f669d Improve builtin-func highlighting achimnol Jun 2, 2017 https://github.com/hdima/python-syntax/pull/60/commits/31f669d00d549f8a45c282b063e3be3e333518fa
43f3542 Improve builtin-func and highlight type annotations in func args achimnol Jun 2, 2017 https://github.com/hdima/python-syntax/pull/60/commits/43f3542282a86a52d36848965b08aade6b27263e
f544d3c Fully implement type annotation support achimnol Jun 2, 2017 https://github.com/hdima/python-syntax/pull/60/commits/f544d3c90b4eeb2912082fba3f0e5b26e2d29651
f5284a8 Add default italic style for type annotation achimnol Jun 2, 2017 https://github.com/hdima/python-syntax/pull/60/commits/f5284a836c1c9350dcb0e0a1300db58ac47f4cb7
d47e205 Fix highlighting function return type annotation achimnol Jun 2, 2017 https://github.com/hdima/python-syntax/pull/60/commits/d47e205ccdad734422715778da70960bb626ac44
0e3ba78 Fix lambda and list/slices broken after type annotation support achimnol Jun 4, 2017 https://github.com/hdima/python-syntax/pull/60/commits/0e3ba78aad712de2e198a611d06ddeaec938a9ca
260521b Fix bugs in f-string literals achimnol Jun 4, 2017 https://github.com/hdima/python-syntax/pull/60/commits/260521b9380114765021ec15d900f4785c7a55f9
e257b1d Final retouch for README and options achimnol Jun 5, 2017 https://github.com/hdima/python-syntax/pull/60/commits/e257b1d89ec5e384b24ee0c426bcca3f25a3248e
daf7366 Add support for runtime-resolved type annotations in strings achimnol Jun 5, 2017 https://github.com/hdima/python-syntax/pull/60/commits/daf7366c8d48228c8e7bdcd45b2f60f3286baf9d
4f194e7 Fix highlighting dotted names in type annotations. achimnol Jun 9, 2017 https://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378
559e3e2 Fix typo-bug in highlights of Python 3 builtin functions. achimnol Jun 26, 2017 https://github.com/hdima/python-syntax/pull/60/commits/559e3e2a3fbacfc6f2cd9c412d97644a5069fb20
ac5499b Fix highlighting of exec() as builtin function in Python 3 achimnol Jun 26, 2017 https://github.com/hdima/python-syntax/pull/60/commits/ac5499b832d0e6b9ed64872ffee61a66ab619c89
0935704 Add support for union operator ("|") in annotation achimnol Jan 3, 2018 https://github.com/hdima/python-syntax/pull/60/commits/09357048aced6245f7bd41431b59d761d855d2d0
Clear filters https://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378
Please reload this pagehttps://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378
Please reload this pagehttps://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378
python.vim https://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378#diff-b27ea89c6d3d3644d78c17cac39eefcfaf2c4c3de6e935610a8b8bc311caaad3
test.py https://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378#diff-3665d65394f4f58a56a256ad6dd8621c68118d90fe56a19387e251c19cec2d2e
Prev https://github.com/hdima/python-syntax/pull/60/commits/daf7366c8d48228c8e7bdcd45b2f60f3286baf9d
Next https://github.com/hdima/python-syntax/pull/60/commits/559e3e2a3fbacfc6f2cd9c412d97644a5069fb20
Please reload this pagehttps://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378
https://github.com/achimnol
achimnolhttps://github.com/hdima/python-syntax/commits?author=achimnol
syntax/python.vimhttps://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378#diff-b27ea89c6d3d3644d78c17cac39eefcfaf2c4c3de6e935610a8b8bc311caaad3
View file https://github.com/hdima/python-syntax/blob/4f194e77311703837dfcbf39a9ca223344951378/syntax/python.vim
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/hdima/python-syntax/pull/60/commits/{{ revealButtonHref }}
https://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378#diff-b27ea89c6d3d3644d78c17cac39eefcfaf2c4c3de6e935610a8b8bc311caaad3
https://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378#diff-b27ea89c6d3d3644d78c17cac39eefcfaf2c4c3de6e935610a8b8bc311caaad3
test.pyhttps://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378#diff-3665d65394f4f58a56a256ad6dd8621c68118d90fe56a19387e251c19cec2d2e
View file https://github.com/hdima/python-syntax/blob/4f194e77311703837dfcbf39a9ca223344951378/test.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/hdima/python-syntax/pull/60/commits/{{ revealButtonHref }}
https://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378#diff-3665d65394f4f58a56a256ad6dd8621c68118d90fe56a19387e251c19cec2d2e
https://github.com/hdima/python-syntax/pull/60/commits/4f194e77311703837dfcbf39a9ca223344951378#diff-3665d65394f4f58a56a256ad6dd8621c68118d90fe56a19387e251c19cec2d2e
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.