Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

editors: recognize report and report_value as observer forms

Cerrado Apto para principiantes
#1,234 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
85/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
vim, vscode
Área
tooling

Línea de trabajo

Comienza con editors/vscode/syntaxes/eigenscript.tmLanguage.json y editors/vim/syntax/eigenscript.vim, revisando las listas de palabras clave y patrones de interpolación anidados. Verifica los scopes con eigenlsp deshabilitado y añade un fixture pequeño o una inspección reproducible que muestre ambas formas de observer resaltadas en contextos ejecutables y de interpolación de f-string, mientras los identificadores más largos, las cadenas, los comentarios y los interrogativos existentes siguen siendo correctos.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C
Estrellas
3
Forks
7
Merge medio
3 h 58 min
PR fusionados (30 d)
105

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de InauguralSystems/EigenScript

Todos los issues de InauguralSystems/EigenScript

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.