python string syntax highlight errors
alexr00 opened this issue · 2 comments
alexr00 commented
-
Editor name and version: VS Code 1.62+
-
Platform: Any
-
Color scheme: Any
-
MagicPython version: latest commit from main
-
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 microsoft/vscode#137694
SyzenEinca commented
This is for the .format() method, I think?
like:
a = "{key}".format(key="something")mikisama commented
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)
