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 Shekhinah Memmel committed Dec 11, 2022
1 parent cc80385 commit 696783f
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 696783f

Please sign in to comment.