MagicPython icon indicating copy to clipboard operation
MagicPython copied to clipboard

.format() keys with spaces don't highlight properly

Open Cavernosa opened this issue 5 years ago • 0 comments
trafficstars

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

  • A sreenshot: image image

  • 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'])))

Cavernosa avatar Jun 08 '20 20:06 Cavernosa