Python syntax highlighting not applied for some elements (e.g., import module names and variable names appear white) with OneDarkPro theme

Aperta
#891 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, vscode
Ambito
design

Direzione di ricerca

Non è specificato alcun file sorgente né alcun test. Riproduci il problema in VS Code con il tema OneDarkPro e lo snippet Python fornito, quindi esamina le regole dei token di sintassi Python del tema. Il lavoro è completato quando i nomi dei moduli importati e i nomi delle variabili locali ricevono rispettivamente l'evidenziazione blu e verde prevista, senza regressioni per gli altri elementi Python.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Describe the bug
When using the OneDarkPro theme, certain syntax elements in Python files (e.g., module names imported with import and variable names inside functions) are not highlighted and appear white instead.

To Reproduce
1.Install and activate the OneDarkPro theme.
2.Open a Python file with code like this:

import pandas as pd  # `pandas` is not highlighted, remains white
def test():
    x = 10          # `x` is not highlighted, remains white

3.Notice that the module names and variable names are not highlighted as expected.

Expected behavior
Imported module names (e.g., pandas) should appear blue, and variable names inside functions (e.g., x) should appear green (according to OneDarkPro's default syntax highlighting).

Screenshots & Example Code

I'm not language genius, I'm just a JS engineer, If applicable, add screenshots and example code to help me know what language highlight have bug and what is your expected

Desktop (please complete the following information):

  • OS: Win11
  • VSCODE Version 1.109.6 and 1.133.0
  • Theme version 3.19.0

Additional context
Add any other context about the problem here.

Lingua principale
TypeScript
Stelle
1.8k
Fork
307
Merge medio
1h 53m
PR unite (30g)
4

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Binaryify/OneDark-Pro

Tutte le issue di Binaryify/OneDark-Pro

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.