Bug in python .format syntax highlighting


#1

With the new style of string formatting in python as in explained in https://pyformat.info/,

When attempting to call a dictionary with the string formatting the syntax highlighting fails to work.

With the code execution:

>>> print(f"This is a showcase for the {x} bug")
This is a showcase for the test bug
>>>
>>> dicty = {"Email":"ema",  "f": "formatting"}
>>>
>>> print(f"This is a showcase for the {dicty['f']} bug")
This is a showcase for the formatting bug
>>>

Am I missing out on something here?

Some of the installed packages that might be relevant are autocomplete-python


#2

You are using the built-in language package.
It will be great if you could report this occurrence at the package repo:
https://github.com/atom/language-python/issues.

I have magicpython installed which gives me another result:


FYI - The built-in Python language in vsCode gives the incorrect result too.