MagicPython
MagicPython copied to clipboard
python string syntax highlight errors
trafficstars
-
Editor name and version: VS Code 1.62+
-
Platform: Any
-
Color scheme: Any
-
MagicPython version: latest commit from main
-
A sreenshot:

-
5-10 lines of surrounding code:
# This is not an f-string, but VSCode highlights `workspaceFolder' like a variable.
a = "${workspaceFolder}"
Originally filed by @mikisama in https://github.com/microsoft/vscode/issues/137694
This is for the .format() method, I think?
like:
a = "{key}".format(key="something")
This is for the
.format()method, I think? like:a = "{key}".format(key="something")
Hi, @SyzenEinca
It's not for the .format() method.
I use python to generate some configuration.
Then I found this python string syntax highlight errors.
paths = [
'OLD_PREFIX/include',
'OLD_PREFIX/inc',
]
paths = [i.replace('OLD_PREFIX', '${workspaceFolder}') for i in paths]
print(paths)
