Skip to content

enh(python) handle t-strings - #4326

Merged
joshgoebel merged 3 commits into
highlightjs:mainfrom
KuSh:python-t-strings
Jul 23, 2026
Merged

enh(python) handle t-strings#4326
joshgoebel merged 3 commits into
highlightjs:mainfrom
KuSh:python-t-strings

Conversation

@KuSh

@KuSh KuSh commented Oct 12, 2025

Copy link
Copy Markdown
Contributor

Handle t-strings exactly like f-strings as PEP 750 says they use the same syntax:

Template string literals support the full syntax of PEP 701.

Fixes #4325

Changes

Make f-strings behaves like t-strings

Checklist

  • Added markup tests
  • Updated the changelog at CHANGES.md

@hugovk

hugovk commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@KuSh Please can you resolve the merge conflict?

@KuSh

KuSh commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

@hugovk done!

@github-actions

Copy link
Copy Markdown

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

2 files changed

Total change +9 B

View Changes
file base pr diff
es/languages/python.min.js 1.6 KB 1.6 KB +5 B
languages/python.min.js 1.6 KB 1.61 KB +4 B

@joshgoebel
joshgoebel merged commit 3070b99 into highlightjs:main Jul 23, 2026
19 checks passed
@KuSh
KuSh deleted the python-t-strings branch July 23, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(Python) Template strings (t-strings, PEP 750) not properly highlighted

3 participants