Skip to content

gh-157491: Resume format-specifier parsing after nested replacement fields - #157492

Open
lpyu001 wants to merge 2 commits into
python:mainfrom
lpyu001:_PyLexer_close_ftstring_expr
Open

lpyu001 wants to merge 2 commits into
python:mainfrom
lpyu001:_PyLexer_close_ftstring_expr

Conversation

@lpyu001

@lpyu001 lpyu001 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Restore format-specifier lexer mode after closing a nested replacement field in an f-string or t-string.

This prevents braces following the nested field from being treated as literal formatted-string content and preserves the specific diagnostic for newlines in single-quoted format specifiers.

…ment fields

Restore format-specifier lexer mode after closing a nested replacement field in an f-string or t-string.

This prevents braces following the nested field from being treated as literal formatted-string content and preserves the specific diagnostic for newlines in single-quoted format specifiers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant