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

Reserved keyword coloring?

オープン
#109 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
tooling

調査の方向性

var event = new Dictionary<string, string>(); を使って VS Code で問題を再現し、示されている Visual Studio for macOS の動作と比較します。C# 構文文法の予約語の色付け規則を調査します。完了条件は、周囲の構文に影響を与えずに event が他の予約語と同じように色付けされることです。

索引モデルが issue の本文から書いたものです。

説明

Would it be possible to get reserved word coloring on variables? It should match the color of the other reserved words, to make it more obvious that the variable name cannot be used.

Details

What editor are you seeing the problem in? VS Code

What version of the editor are you using? 1.22.2 and Insiders 1.23.0

What color theme are you using? Dark+ (default)

Repro

var event = new Dictionary<string, string>();

Ends up formatted like this, with no obvious sign that event is a reserved word:

screen shot 2018-04-17 at 12 07 50 pm

Instead of any reserved word errors, I kept seeing a bunch of (seemingly unrelated) errors in the vicinity of this line of code. I finally opened the project up in Visual Studio for macOS and it became obvious:

screen shot 2018-04-17 at 12 10 31 pm
主要言語
TypeScript
スター
78
フォーク
43
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

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

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

dotnet/csharp-tmLanguage のほかの issue

dotnet/csharp-tmLanguage の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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