python-syntax
python-syntax copied to clipboard
Request: Highlight expressions in f-strings as code.
Something like this, so the expressions look like code instead of the entire expression being highlighted the same.
f'a{b}c'
Are you requesting that the bracketed area (b in this case) to just be highlighted normally?
Yes. For example, in this screenshot ctx.guild would be colored the same as the os.path.abspath.

I think this is the same as @mikevb1 requested, but basically I'd want the { and } to be SPECIAL as they currently are, but everything between the brackets to be highlighted as if it were just standing on its own line.
this gist could be useful (not my work)