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

Format specifiers in strings are syntax-highlighted even when not involved in a format #187319

Closed
mcrumiller opened this issue Jul 7, 2023 · 4 comments
Assignees

Comments

@mcrumiller
Copy link

mcrumiller commented Jul 7, 2023

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: latest
  • OS Version: Windows

Steps to Reproduce:

  1. Create a variable with a string containing a format specifier:

    s = "hi there %0.4f see how it's highlighted?"
  2. Observe syntax highlighting on the %0.4f:

    image

@aeschli
Copy link
Contributor

aeschli commented Aug 18, 2023

Which language?

@aeschli aeschli added the info-needed Issue requires more information from poster label Aug 18, 2023
@mcrumiller
Copy link
Author

Ahh sorry--this is in Python.

@aeschli
Copy link
Contributor

aeschli commented Aug 18, 2023

We use the grammar from https://github.com/MagicStack/MagicPython. Can you file the issue there?

Maybe this is a duplicate of MagicStack/MagicPython#243

@aeschli aeschli assigned alexr00 and unassigned aeschli Aug 18, 2023
@aeschli aeschli removed the info-needed Issue requires more information from poster label Aug 18, 2023
@mcrumiller
Copy link
Author

Hi @aeschli, this does indeed look like a duplicate of that issue. You can close here. That issue was posted in 2021 and hasn't been resolved though, so I'm not holding my breath.

Thanks for the guidance.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants