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

editors: recognize report and report_value as observer forms

Chiusa Adatta ai principianti
#1,234 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
85/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
vim, vscode
Ambito
tooling

Direzione di ricerca

Inizia con editors/vscode/syntaxes/eigenscript.tmLanguage.json e editors/vim/syntax/eigenscript.vim, controllando gli elenchi delle parole chiave e dei pattern di interpolazione annidati. Verifica gli scope con eigenlsp disabilitato e aggiungi un piccolo fixture o un’ispezione riproducibile che mostri entrambe le forme di observer evidenziate nei contesti eseguibili e di interpolazione f-string, mentre gli identificatori più lunghi, le stringhe, i commenti e gli interrogativi esistenti rimangono corretti.

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

Descrizione

area:lint-tooling bug good first issue help wanted

The language reserves report and report_value as observer forms, but the bundled VS Code and Vim syntax grammars omit both names. VS Code's TextMate grammar falls through to the ordinary function-call rule for report of x and report_value of x; Vim has no corresponding observer keyword entry.

This is a small first contribution in editor configuration. No C or observer implementation changes are needed.

Starting points

Checked at b91768e23c5a874a64e76e4af9ab291e6aa49983:

For the bounded fix, use the existing observer/interrogative highlighting groups (support.function.interrogative.eigenscript and eigsInterrogative) for these two forms. This is a highlighting category; it does not change the language's terminology or semantics.

For the interpolation cases, also inspect the nested pattern lists: VS Code's #fstrings expression patterns do not include #interrogatives, and Vim's eigsInterp contains list omits eigsInterrogative. Updating only the top-level keyword lists will leave those cases unhighlighted.

Done when

  • report and report_value receive the observer highlighting group in executable expressions in both editors, including inside f-string interpolations.
  • Longer identifiers such as report_value_extra remain ordinary identifiers.
  • The same text inside a string or comment retains its string/comment scope.
  • Existing interrogatives continue to highlight correctly.
  • The PR includes a small fixture or reproducible scope inspection showing the missing highlighting before the change and the correct scopes after it.

The omission was confirmed from the grammar patterns, not through a GUI run. In VS Code, verify with eigenlsp disabled as well, since semantic tokens can hide a TextMate defect. Follow CONTRIBUTING.md for normal PR checks. Keep the change limited to these two observer forms; the separate numeric-literal highlighting task may touch the same files.

Lingua principale
C
Stelle
3
Fork
7
Merge medio
3h 58m
PR unite (30g)
105

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 InauguralSystems/EigenScript

Tutte le issue di InauguralSystems/EigenScript

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.