MagicStack / MagicPython

Cutting edge Python syntax highlighter for Sublime Text, Atom and Visual Studio Code. Used by GitHub to highlight your Python code!
MIT License
1.41k stars 91 forks source link

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

Open alexr00 opened 2 years ago

alexr00 commented 2 years ago

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