Skip to content

support new Python "soft keywords": match, case and _ #1797

Closed
@taleinat

Description

@taleinat

Python 3.10 introduces pattern-matching blocks, in which the match, case and _ "soft keywords" are considered keywords only in specific parts of the syntax. See the docs for more details.

However, the list of Python keywords in lexers/python.py doesn't include these, nor does the Python lexer appear to have any other way of supporting these keywords.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lexingarea: changes to individual lexershelp wantedCommunity help appreciated!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions