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

[BUG] Using an accessor operator (dot notation) on a variable makes the "new" keyword lose color

Aperta
#256 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, wasm

Direzione di ricerca

The bug is that the new keyword loses its syntax highlight color when written after a dot accessor, such as project.sound = new WickSound(...), while sound = new ... stays colored. The payload names no file, so start by finding the Candlestick code editor's syntax highlighting rules for keywords and compare how member-assignment tokens are matched. Done means new stays red after project. in the reproduction, with the highlighting behavior checked against the Wick 1.19.4 output.

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

Descrizione

bug

Describe the bug
In the code editor, if you write code like project.sound = new WickSound(...);, the new loses its red color. This does not occur if you just use sound = ....

To reproduce
Steps to reproduce the behavior:

  1. Write project.sound = new WickSound("sound.mp3"); in a script (project can really be anything)
  2. Delete the project. to see it return to normal

Expected behavior
The new keyword remains red.

Screenshots
Candlestick
Image
Image

Wick 1.19.4 (works as expected)
Image

Editor version
Is this bug reproducible in Wick Editor 1.19.3/1.19.4 or only Candlestick?
Candlestick 1.3.0

Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
I would have to guess it's library updates... I haven't tested this in my autocomplete branch yet.

Lingua principale
JavaScript
Stelle
53
Fork
22
Merge medio
2g 10h
PR unite (30g)
12

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 Candlestickers/Candlestick

Tutte le issue di Candlestickers/Candlestick

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.