MagicPython icon indicating copy to clipboard operation
MagicPython copied to clipboard

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

Open alexr00 opened this issue 3 years ago • 0 comments
trafficstars

  • Editor name and version: VS Code 1.67

  • Platform: all

  • Color scheme: all

  • MagicPython version: commit c9b3409deb69acec31bbf7913830e93a046b30cc

  • 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 https://github.com/microsoft/vscode/issues/150199

alexr00 avatar Jun 08 '22 14:06 alexr00