You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Language Server version: 2024.4.1 (pyright version 1.1.356, commit 6652c4a8)
OS and version: Win 10
Python version (& distribution if applicable, e.g. Anaconda): 3.12
Code Snippet
name="John"print(f"My name is {name}, nice to meet you!")
# Syntax highlighting breaks down if you line-break at {print(f"My name is {name}, nice to meet you!")
Repro Steps
Copy the above code into a script file.
Actual behavior
The text was updated successfully, but these errors were encountered:
Any updates on this issue? This is annoying since auto-formatters often line break at the curly braces in f-strings but this messes up the syntax highlighting!
VS code uses something called Textmate to provide the default colorization of text. It doesn't handle the line feed here. We have plans to replace the use of Textmate, but that's pending VS code providing a new way to provide colorization.
Environment data
Code Snippet
Repro Steps
Actual behavior
The text was updated successfully, but these errors were encountered: