Short constant names highlighted incorrectly

Offen
#135 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@vpetrovykh arbeitet bereits daran.

Seit 20.7.2018.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

Hi. 👋

Short constant names seem to be highlighted incorrectly. I got the assumption that the bug might lie in this MagicPython package. What do you guys think? I ran across this while coding a project, and thought that I should do something about it.

  • Editor name and version: Visual Studio Code 1.23.1
  • Platform: macOS 10.12.6
  • Color scheme: Dracula
  • MagicPython version: Default in Visual Studio Code 1.23.1

VSCode Example

example

GitHub Example


LONGER = "Yeshh!"
B = "What?"

class SomeClass:
    MEMBER = 1
    MEMBER2 = 2
    A = 3
    ARE = 123
    A85 = "Something"

I would also like to give special mention to short constant names that end in numbers. They don't seem to be highlighted correctly, even though the same length character-based constants do.

Vorherrschende Sprache
JavaScript
Sterne
1.4k
Forks
98
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus MagicStack/MagicPython

Alle Issues in MagicStack/MagicPython

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.