GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support for Python PEP 677 in Python TextMate grammar · Issue #247 · MagicStack/MagicPython

Support for Python PEP 677 in Python TextMate grammar  #247

New issue
Copy link
New issue
Copy link
Open
Open
Support for Python PEP 677 in Python TextMate grammar #247
Copy link

Description

@alexr00
alexr00
opened on Dec 20, 2021
Issue body actions
  • 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.

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

Originally from @erictraut in microsoft/vscode#139393

Activity

  1. JelleZijlstra commented on Apr 30, 2024

    @JelleZijlstra
    JelleZijlstra
    on Apr 30, 2024
    More actions

    Note this PEP was rejected, so it probably doesn't make sense to add support to MagicPython now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.