Skip to content

[Python] Fix escaped braces in fr-strings#4582

Merged
michaelblyons merged 2 commits into
sublimehq:masterfrom
deathaxe:pr/python/fix-fr-string-braces
Jul 2, 2026
Merged

[Python] Fix escaped braces in fr-strings#4582
michaelblyons merged 2 commits into
sublimehq:masterfrom
deathaxe:pr/python/fix-fr-string-braces

Conversation

@deathaxe

@deathaxe deathaxe commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Fixes #4580

This PR consumes {{ in fallback branch of quantifiers to ensure all of them being scoped as expected.

This commit consumes `{{` in fallback branch of quantifiers to ensure all of
them being scoped as expected.
michaelblyons
michaelblyons previously approved these changes Jul 1, 2026
This commit ensures not to apply unwanted escape scope to single braces in
ordinary raw strings.
@michaelblyons
michaelblyons merged commit 7f904a6 into sublimehq:master Jul 2, 2026
2 checks passed
@deathaxe
deathaxe deleted the pr/python/fix-fr-string-braces branch July 4, 2026 13:34
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] Formatted regex string with lots of braces

3 participants