microsoft / microsoft/TypeScript-TmLanguage
Add ability to target keywords that take you out of the normal flow of execution
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 471
- フォーク
- 149
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
TS and JS Grammar Extension version: 0.0.41 / latest
I'd like to be able to highlight keywords that take you out of the normal flow of execution. By this I mean keywords that cause code to jump somewhere else when running. For example return, throw, break, continue.
Because these keywords take you out of the normal flow of execution they are very important, and not something you'd want to miss when scanning code, so I think it would be great if we could target them separately to ensure they aren't missed.
I'd like the ability to highlight them as more important when compared to other keywords such as if, for, while, try, catch, etc.
Currently break and continue are in the same scope as for, while, do, etc (keyword.control.loop). And throw is in the same scope as try and catch (keyword.control.trycatch). Because of this it isn't possible to highlight them separately.
Example:

In the screenshot above I want to highlight continue and throw, but doing so also highlights for, try and catch whereas I'd like those to remain grey.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
VS Code、Sublime Text、Atom の各 grammar で使用されている TypeScript TextMate grammar ファイルから始め、return、throw、break、continue に割り当てられている scope を、既存のループおよび try/catch キーワードと比較して確認します。これらの終了フローキーワードに独立してハイライトできる個別の scope が割り当てられ、for、try、catch の scope を変更しないことをもって完了とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, typescript
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100