.format() keys with spaces don't highlight properly
Cavernosa opened this issue · comments
Cavernosa commented
not sure if it belongs here but
If you have a dict key with spaces in its name, 'fried eggs' for example, it thinks the format braces {} are actually a string.
-
Editor name and version: vs code 1.45.1
-
Platform: linux mint
-
Color scheme: Dark molokai
-
MagicPython version: 1.1.0
-
5-10 lines of surrounding code:
action = int(input('text' '\n text {bread[0]}' '\n text {fried eggs[0]})' '\n text {pancakes[0]})' '\n text \n'.format_map(dt['foods'])))