Getting invalid.illegal.name.python on valid python code from textmate #150199
Labels
grammar
Syntax highlighting grammar
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
upstream-issue-linked
This is an upstream issue that has been reported upstream
Issue Type: Bug
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
.Additional info: semantic token highlighting is enabled and working as expected.
PyCharm is able to parse it correctly:

Output from inspector:
VS Code version: Code 1.67.2 (Universal) (c3511e6, 2022-05-17T18:20:57.384Z)
OS version: Darwin arm64 21.5.0
Restricted Mode: No
The text was updated successfully, but these errors were encountered: