Skip to content

Add syntax highlighting for new Python keyword #1942

Open
@gtkacz

Description

@gtkacz

PEP 654 introduced exception groups: "a combination of multiple unrelated exceptions". This changes how exceptions are handled by the user, where a new variation of the except keyword can be used as except*.

However, code block syntax highlighting does not support it yet, removing the coloring even from the except keyword itself:

try:
    raise ExceptionGroup()
except*:
    pass

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