-
Notifications
You must be signed in to change notification settings - Fork 38.2k
Closed
Labels
grammarSyntax highlighting grammarSyntax highlighting grammarupstream-issue-linkedThis is an upstream issue that has been reported upstreamThis is an upstream issue that has been reported upstream
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
grammarSyntax highlighting grammarSyntax highlighting grammarupstream-issue-linkedThis is an upstream issue that has been reported upstreamThis is an upstream issue that has been reported upstream
