aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/python
diff options
context:
space:
mode:
authorYuriy2022-11-01 17:49:33 +0000
committerMichael Davis2022-11-02 01:10:11 +0000
commitb156f5761804a7e9a95268f80ff5e34dea783200 (patch)
treea7502b375d80e3d333f5514a72860f8f79cdd7d9 /runtime/queries/python
parente0b034dcd1a99683efa429e55657dd68ebd9a301 (diff)
Add indentation for Python pattern matching
Add indentation for `match` and `case`.
Diffstat (limited to 'runtime/queries/python')
-rw-r--r--runtime/queries/python/indents.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/queries/python/indents.scm b/runtime/queries/python/indents.scm
index b7b499c0..743971ad 100644
--- a/runtime/queries/python/indents.scm
+++ b/runtime/queries/python/indents.scm
@@ -9,6 +9,8 @@
(while_statement)
(with_statement)
(try_statement)
+ (match_statement)
+ (case_clause)
(import_from_statement)
(parenthesized_expression)
@@ -33,6 +35,8 @@
(while_statement)
(with_statement)
(try_statement)
+ (match_statement)
+ (case_clause)
(function_definition)
(class_definition)