Skip to content

Incorrect syntax highlighting for rf strings #6572

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

Closed
janosh opened this issue Jul 13, 2019 · 1 comment
Closed

Incorrect syntax highlighting for rf strings #6572

janosh opened this issue Jul 13, 2019 · 1 comment
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@janosh
Copy link

janosh commented Jul 13, 2019

Environment data

  • VS Code version: 1.36.0
  • Extension version: 2019.6.24221
  • OS and version: macOS 10.14.5
  • Python version: 3.6.7 (miniconda)
  • Jedi or Language Server: latter

Expected behavior

If I combine raw strings with formatted string literals (a.k.a. f-strings), I'd expect the syntax highlighting to remain that of f-strings.

f-string

Actual behavior

What I'm actually seeing is the dark red color used for raw strings even for parts of the f-string that are Python code and have yet to be evaluated.

rf-string

@janosh janosh added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Jul 13, 2019
@brettcannon
Copy link
Member

We don't control syntax highlighting for Python files. That comes from VS Code which gets it from MagicPython. It's best to report an issue there.

@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jul 15, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants