Support for Python PEP 677 in Python TextMate grammar
まだ誰も着手していません。
評価
調査の方向性
まず、VS Code で使用されている Python TextMate grammar を見つけ、既存の grammar ルールと併せて PEP 677 を読みます。issue で説明されている callable-signature 構文をハイライトの例として使用します。矢印トークンを含む新しい構文が、報告されている赤いエラーなしでハイライトされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
- Editor name and version: VS Code
- Platform: Any
- Color scheme: Any
- MagicPython version:
- A sreenshot:
- 5-10 lines of surrounding code:
VS Code includes a TextMate grammar for Python. Draft PEP 677 introduces a new syntax for annotating callable signatures. This PEP hasn't been ratified, but it's likely to be in the near future. I recently added support for this feature in pyright (and therefore, in pylance as well). The TextMate grammar will need to be updated to accommodate this new syntax. Currently, it causes VS Code to display the -> token in red.

Originally from @erictraut in https://github.com/microsoft/vscode/issues/139393
- 主要言語
- JavaScript
- スター
- 1.4k
- フォーク
- 98
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MagicStack/MagicPython のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
MagicStack/MagicPython#275 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
MagicStack/MagicPython#273 · リアクション 7 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
MagicStack/MagicPython#269 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
MagicStack/MagicPython#267 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
MagicStack/MagicPython#265 · コメント 2 件 ·