aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/indents.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/queries/python/indents.scm b/queries/python/indents.scm
new file mode 100644
index 000000000..c1adc58bd
--- /dev/null
+++ b/queries/python/indents.scm
@@ -0,0 +1,14 @@
+[
+ (function_definition)
+ (if_statement)
+ (with_statement)
+ (try_statement)
+ (for_statement)
+ (for_in_clause)
+ (class_definition)
+] @indent
+
+[
+ "elif"
+ "else"
+] @branch