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

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

Open
sgtlaggy opened this issue May 21, 2017 · 4 comments
Open

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

sgtlaggy opened this issue May 21, 2017 · 4 comments

Comments

@sgtlaggy
Copy link

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

f'a{b}c'
@nfnty
Copy link
Member

nfnty commented May 21, 2017

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

@sgtlaggy
Copy link
Author

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

@nfnty nfnty removed the waiting label May 21, 2017
@pokey
Copy link

pokey commented Jan 4, 2018

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
Copy link

this gist could be useful (not my work)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants