From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 27 May 2026 15:25:43 +0000 (+0200) Subject: [3.13] gh-149861: Fix rule in match statement `case_block` PEG grammar (#150512) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=446c91e5fbb22f910f8eb7db1858e04914e3a271;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-149861: Fix rule in match statement `case_block` PEG grammar (#150512) (cherry picked from commit 99c254e2f79a4197524bef61bf0d12251ee273e6) Co-authored-by: Ivy Xu --- diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 303c201f1a6f..704e6d0144f9 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -613,7 +613,7 @@ The match statement is used for pattern matching. Syntax: match_stmt: 'match' `subject_expr` ":" NEWLINE INDENT `case_block`+ DEDENT subject_expr: `flexible_expression` "," [`flexible_expression_list` [',']] : | `assignment_expression` - case_block: 'case' `patterns` [`guard`] ":" `!block` + case_block: 'case' `patterns` [`guard`] ":" `suite` .. note:: This section uses single quotes to denote