diff --git a/crates/ruff/src/ast/operations.rs b/crates/ruff/src/ast/operations.rs index 2b0e8eed0c502..b35c4397655f2 100644 --- a/crates/ruff/src/ast/operations.rs +++ b/crates/ruff/src/ast/operations.rs @@ -206,6 +206,7 @@ pub fn in_nested_block<'a>(mut parents: impl Iterator) -> bool | StmtKind::TryStar { .. } | StmtKind::If { .. } | StmtKind::With { .. } + | StmtKind::Match { .. } ) }) }