Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Token highlighting for identifiers with Unicode

Aperta
#1,531 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
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
haskell
Ambito
frontend, web-dev

Direzione di ricerca

Inizia esaminando l’implementazione modificata per #1525 e individuando le espressioni regolari usate per l’evidenziazione del primo piano e dei token identici. Riproduci il caso betáp/betűkkel, quindi verifica che l’evidenziazione dello sfondo copra solo l’identificatore Unicode completo, preservando al contempo il comportamento esistente del primo piano.

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

Descrizione

bug

Hi, Chris,

This is a followup on Issue #1525. That one fixed the colour deviation of Unicode characters in the display of identifiers (red instead of the surrounding black for ASCII).

In the original report I also mentioned the background colour for highlighting all the occurrences of the identifier currently under the cursor. While the foreground colour got fixed in #1525, the identical-token-highlighting (with background colour) did not.

To illustrate: #1525 fixed the token colouring issue, but not the "token highlighting" (of token under cursor) (with light-green background)
example-20210920
(With the cursor on betáp, the expectation would be to highlight all of it, and to not highlight the bet part of betűkkel).

I created this separate issue, because I suspect my comment on the already closed issue might go unnoticed.

I'd totally understand if this would be a a "won't fix" (because of Code Mirror dependency) or low priority, however, I figured given the experience gained with #1525, maybe this turns out to be a similarly minor patch, and someone just has to find the place where the regexes are defined. (I think it's strange to begin with, that the code is not shared with the foreground colour).

Lingua principale
Haskell
Stelle
1.3k
Fork
201
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

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 google/codeworld

Tutte le issue di google/codeworld

Issue simili

Altre issue su Haskell

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.