← Winnitude! Search  ·  Reader Mode (1266 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 9 LINKS

Getting invalid.illegal.name.python on valid python code from textmate · Issue #252 · MagicStack/MagicPython

Repository navigation

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


New issue

New issue

Open

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

Description

@alexr00's profile alexr00 opened on Jun 8, 2022
  • Editor name and version : VS Code 1.67

  • Platform : all

  • Color scheme : all

  • MagicPython version : commit c9b3409

  • A sreenshot :

  • 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:

Originally from @Bobronium in microsoft/vscode#150199

Reacted by Arseny Boykov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions