on master help sign in
Add indentation for Python pattern matching

Add indentation for `match` and `case`.

commitb156f5761804a7e9a95268f80ff5e34dea783200 authorYuriy <yugabuev@gmail.com> dateTue 1 Nov 2022, 18:49 (4 years ago) parente0b034d
1 file changed+4
runtime/queries/python/indents.scm+4
runtime/queries/python/indents.scm+4
@@ -9,6 +9,8 @@
99 (while_statement)
1010 (with_statement)
1111 (try_statement)
12+ (match_statement)
13+ (case_clause)
1214 (import_from_statement)
1315
1416 (parenthesized_expression)
@@ -33,6 +35,8 @@
3335 (while_statement)
3436 (with_statement)
3537 (try_statement)
38+ (match_statement)
39+ (case_clause)
3640
3741 (function_definition)
3842 (class_definition)