You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing the f-prefix on an f-string is hard to notice #65
As python 3.6 gave us f-strings it's I've been using them more over the ol' .format() syntax.
Sadly, the syntax is highlighting strings that have curly braces but have neither f-string prefix or .format suffix.
The third statement ("{hello}") shouldn't show the curly brace because that is not doing anything fancy with the string. It's just a string.
This might lead me as a developer to miss putting the f-prefix before a string, as the curly braces are giving an indication that they are treated as some sort of templates.
Activity
nfnty commentedon Apr 9, 2020
I've had the same issue from time to time, so this would be a nice improvement. PR is welcome.
vEnhance commentedon Nov 11, 2022
Since I never use
"...".formatthe following hack has been helpful to me (after/syntax/python.vim):It's just copying the original
pythonStrFormatand changing thecontainedInfield.Embellish .vim/after/syntax/python.vim
bgenchel commentedon Feb 8, 2024
is this solved or being worked on?
Lilja commentedon Feb 9, 2024
I would consider looking at nvim that has treesitter integration natively. It doesn't have this issue.
adigitoleo commentedon Mar 10, 2024
Related: #95