Cutting edge Python syntax highlighter for Sublime Text, Atom and Visual Studio Code. Used by GitHub to highlight your Python code!
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
Editor name and version: VS Code 1.67
Platform: all
Color scheme: all
MagicPython version: commit c9b3409deb69acec31bbf7913830e93a046b30cc
A sreenshot:
5-10 lines of surrounding code:
in
42and 2
, a valid python code,42and
is marked asinvalid.illegal.name.python
42
should be marked asconstant.numeric.dec.python
andand
should be marked askeyword.control.flow.python
.PyCharm is able to parse it correctly:
Originally from @Bobronium in https://github.com/microsoft/vscode/issues/150199