Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

editors: recognize report and report_value as observer forms

已关闭 适合新手
#1,234 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
85/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
vim, vscode
领域
tooling

调研方向

从 editors/vscode/syntaxes/eigenscript.tmLanguage.json 和 editors/vim/syntax/eigenscript.vim 开始,检查关键字列表和嵌套插值模式列表。在禁用 eigenlsp 的情况下验证 scopes,并添加一个小型 fixture 或可复现的检查,展示两种 observer 形式在可执行上下文和 f-string 插值上下文中都能被高亮,同时较长的标识符、字符串、注释和现有疑问形式仍保持正确。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C
星标
3
派生
7
平均合并
4 小时 7 分钟
30 天内合并 PR
112

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

InauguralSystems/EigenScript 的其他 Issue

查看 InauguralSystems/EigenScript 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。