Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Liebelts opened this issue Jun 8, 2020 · 0 comments
Open

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

Liebelts opened this issue Jun 8, 2020 · 0 comments

Comments

@Liebelts
Copy link

@Liebelts Liebelts commented Jun 8, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.