MagicStack / MagicStack/MagicPython

Support for Python PEP 677 in Python TextMate grammar

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

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

主要言語
JavaScript
スター
1.4k
フォーク
98
PR マージ指標
30日以内にマージされた PR はありません

説明

* **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](https://www.python.org/dev/peps/pep-0677/) 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.

![0e3f81e5-ff24-4f85-81ca-f1519b11088b](https://user-images.githubusercontent.com/7040122/146594702-529223ac-336d-4e36-ba0a-8ba616aac847.jpg)

Originally from @erictraut in https://github.com/microsoft/vscode/issues/139393

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

調査の方向性

まず、VS Code で使用されている Python TextMate grammar を見つけ、既存の grammar ルールと併せて PEP 677 を読みます。issue で説明されている callable-signature 構文をハイライトの例として使用します。矢印トークンを含む新しい構文が、報告されている赤いエラーなしでハイライトされれば完了です。

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

評価

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

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

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