Skip to content

Syntax highlight and indent Python match case statements #4526

Closed
@sudormrfbin

Description

@sudormrfbin

Python's pattern matching syntax using match and case is not properly highlighted due to missing highlight queries. match and case can be assigned to @keyword.control:

[
"as"
"assert"
"await"
"from"
"pass"
"with"
] @keyword.control

The tree-sitter grammar might have additional nodes that can be highlighted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tree-sitterArea: Tree-sitterC-enhancementCategory: ImprovementsE-easyCall for participation: Experience needed to fix: Easy / not muchE-has-instructionsCall for participation: Has instructions for fixing the issue and opening a PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions