Skip to content

Commit

Permalink
Add indentation for Python pattern matching
Browse files Browse the repository at this point in the history
Add indentation for `match` and `case`.
  • Loading branch information
ygabuev authored and the-mikedavis committed Nov 2, 2022
1 parent e0b034d commit b156f57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/queries/python/indents.scm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
(while_statement)
(with_statement)
(try_statement)
(match_statement)
(case_clause)
(import_from_statement)

(parenthesized_expression)
Expand All @@ -33,6 +35,8 @@
(while_statement)
(with_statement)
(try_statement)
(match_statement)
(case_clause)

(function_definition)
(class_definition)
Expand Down

0 comments on commit b156f57

Please sign in to comment.