Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

editors: recognize report and report_value as observer forms

クローズ 初心者向け
#1,234 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
vim, vscode
領域
tooling

調査の方向性

まず editors/vscode/syntaxes/eigenscript.tmLanguage.json と editors/vim/syntax/eigenscript.vim を確認し、キーワードとネストされた補間パターンのリストを調べます。eigenlsp を無効にした状態でスコープを検証し、実行可能コンテキストと f-string 補間コンテキストの両方で observer の2つの形式がハイライトされ、より長い識別子、文字列、コメント、既存の疑問形が引き続き正しく扱われることを示す、小さな fixture または再現可能な検査を追加します。

索引モデルが 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時間 15分
マージ済み PR(30日)
106

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。