vim-python / python-syntax

Python syntax highlighting for Vim
MIT License
438 stars 84 forks source link

Request: Highlight expressions in f-strings as code. #26

Open sgtlaggy opened 7 years ago

sgtlaggy commented 7 years ago

Something like this, so the expressions look like code instead of the entire expression being highlighted the same.

f'a{b}c'
nfnty commented 7 years ago

Are you requesting that the bracketed area (b in this case) to just be highlighted normally?

sgtlaggy commented 7 years ago

Yes. For example, in this screenshot ctx.guild would be colored the same as the os.path.abspath. image

pokey commented 6 years ago

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.

adigitoleo commented 3 years ago

this gist could be useful (not my work)