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

Getting invalid.illegal.name.python on valid python code from textmate #252

Open
alexr00 opened this issue Jun 8, 2022 · 0 comments
Open

Comments

@alexr00
Copy link

alexr00 commented Jun 8, 2022

  • Editor name and version: VS Code 1.67

  • Platform: all

  • Color scheme: all

  • MagicPython version: commit c9b3409

  • A sreenshot:
    image

  • 5-10 lines of surrounding code:

print(42and 2)

in 42and 2, a valid python code, 42and is marked as invalid.illegal.name.python

42 should be marked as constant.numeric.dec.python and and should be marked as keyword.control.flow.python.

PyCharm is able to parse it correctly:
image

Originally from @Bobronium in microsoft/vscode#150199

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

No branches or pull requests

1 participant