Skip to content

The PEG rule "case_block" of match statement seems not rendered correctly #149861

Description

@hikorp

Activity

  1. terryjreedy commented on May 15, 2026

    @terryjreedy
    Member

    The case_block syntax is here. If the word block is an actual syntax term similar to guard, it should be in blue and underlined and linked to the block syntax line. But the block syntax seems to be missing from both the doc and pep-0634 Is it the same as a normal compound statement suite? (If so, use that.) Or more restricted?

    If the link is meant to be missing, then I believe "`!block`" needs something like ":role:" in front.

    @brandtbucher @gvanrossum

  2. StanFromIreland commented on May 15, 2026

    @StanFromIreland
    Member

    This needs to be fixed like #149811.

    If the link is meant to be missing, then I believe "!block" needs something like ":role:" in front

    That won’t work here I’m afraid. Either we fix the render (I have a PR for this: #148845), or we fix the reference.

  3. StanFromIreland commented on May 15, 2026

    @StanFromIreland
    Member

    CC @encukou you missed the one my fix was originally for ;-)

  4. gvanrossum commented on May 15, 2026

    @gvanrossum
    Member

    This needs to be fixed like #149811.

    To be clear, is the solution to remove the exclamation point and rename to `suite?

    So `!block` -> `suite` ?

    I see no reason to omit the link.

  5. IvyXu420 commented on May 24, 2026

    @IvyXu420
    Contributor

    I have made a PR to fix this. Could anyone please review it when you’re free? Thanks!

  6. added a commit that references this issue on May 27, 2026
  7. added 3 commits that reference this issue on May 27, 2026
  8. encukou commented on May 28, 2026

    @encukou
    Member

    Thanks @ByteFlowing1337 for the fix, and Stan for merging the backports!

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

    docsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions