Skip to content

Template string support in Python formatting#2973

Closed
bartbroere wants to merge 2 commits intopygments:masterfrom
bartbroere:template-string-support
Closed

Template string support in Python formatting#2973
bartbroere wants to merge 2 commits intopygments:masterfrom
bartbroere:template-string-support

Conversation

@bartbroere
Copy link
Copy Markdown

Python 3.14 adds support for template strings. The syntax of t-strings is the same as that of f-strings, so it's relatively easy to format it properly.

I didn't rename the name of the state, nor create different states for f-strings and template strings. I could do that if it's preferred.

@bartbroere
Copy link
Copy Markdown
Author

This PR is no longer necessary, also implemented in #3009

@bartbroere bartbroere closed this Jan 18, 2026
@Anteru Anteru added this to the 2.20.0 milestone Mar 26, 2026
@Anteru Anteru added the A-lexing area: changes to individual lexers label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lexing area: changes to individual lexers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants