MagicStack / MagicStack/MagicPython
Syntax Highlighting Error - Inconsistent Scoping for Keywords
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.4k
- Forks
- 98
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
- Editor name and version:
- Sublime Text 3
- Version 3.2.2, Build 3211
- Platform:
- MacOS (Catalina)
- Color scheme:
Link to a repository with my slightly customized color schemes.
They are slight variations to the Material and Materialize color schemes.
-
MagicPython version: 1.1.1 (according to my package.json)
-
A screenshot:
- 5-10 lines of surrounding code:
def syntax_bug(example):
# When code scoped as `keyword.operator.logical.python` are
# used outside the scope of `meta.function-call.*.python`,
# the keywords
if "keywords" not in "function-call":
print("logical operator keywords highlight correctly")
# `is` and `not` are scoped as `keyword.control.flow.python`
# when used inside a function-call
if "keywords" in "function-call":
print(
"keyword highlighting" is not "yellowish-green"
or "greenish-yellow"
)
outside_function_call = (
"keyword highlighting" is not "yellowish-green" or "greenish-yellow"
)
return outside_function_call
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Das gemeldete Python-Beispiel in Sublime Text 3 mit MagicPython 1.1.1 reproduzieren und untersuchen, welche Scopes die gezeigten Operatoren innerhalb und außerhalb von Funktionsaufrufen erhalten. Als erledigt gilt die Aufgabe, wenn die Keyword-Scopes in beiden Kontexten konsistent sind und das Beispiel wie vorgesehen hervorgehoben wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, python
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100