Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Python PEP 677 in Python TextMate grammar #139393

Closed
erictraut opened this issue Dec 17, 2021 · 1 comment
Closed

Support for Python PEP 677 in Python TextMate grammar #139393

erictraut opened this issue Dec 17, 2021 · 1 comment
Assignees
Labels
grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@erictraut
Copy link

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.

0e3f81e5-ff24-4f85-81ca-f1519b11088b

@alexr00
Copy link
Member

alexr00 commented Dec 20, 2021

Moved to MagicStack/MagicPython#247, which is the repo we get our python grammar from.

@alexr00 alexr00 added grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream labels Dec 20, 2021
@alexr00 alexr00 closed this as completed Dec 20, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

4 participants
@sbatten @erictraut @alexr00 and others