Skip to content

Commit 446c91e

Browse files
[3.13] gh-149861: Fix rule in match statement case_block PEG grammar (#150512)
(cherry picked from commit 99c254e) Co-authored-by: Ivy Xu <fakeshadow1337@gmail.com>
1 parent a58c24d commit 446c91e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/reference/compound_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ The match statement is used for pattern matching. Syntax:
613613
match_stmt: 'match' `subject_expr` ":" NEWLINE INDENT `case_block`+ DEDENT
614614
subject_expr: `flexible_expression` "," [`flexible_expression_list` [',']]
615615
: | `assignment_expression`
616-
case_block: 'case' `patterns` [`guard`] ":" `!block`
616+
case_block: 'case' `patterns` [`guard`] ":" `suite`
617617

618618
.. note::
619619
This section uses single quotes to denote

0 commit comments

Comments
 (0)