Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Fix debugging f-string replacements #3218

Merged
merged 2 commits into from
Jan 28, 2022

Conversation

deathaxe
Copy link
Collaborator

Fixes #3216

Fixes: sublimehq#3216

This commit ...

1. uses multi-push to not push into python expression context twice.
   see: https://docs.python.org/3.6/reference/lexical_analysis.html#f-strings
2. adds requested support for surrounding whitespace of `=` debug
   modifier.
3. adds named contexts and re-uses common modifier patterns in both
   f-string contexts.
@deathaxe deathaxe merged commit a05b94c into sublimehq:master Jan 28, 2022
@deathaxe deathaxe deleted the pr/python/fix-f-debug branch January 28, 2022 17:18
mitranim pushed a commit to mitranim/Packages that referenced this pull request Mar 25, 2022
Fixes: sublimehq#3216

This commit ...

1. uses multi-push to not push into python expression context twice.
   see: https://docs.python.org/3.6/reference/lexical_analysis.html#f-strings
2. adds requested support for surrounding whitespace of `=` debug
   modifier.
3. adds named contexts and re-uses common modifier patterns in both
   f-string contexts.
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] whitespace around = formatter in f-strings
4 participants