aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/indents.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/queries/python/indents.scm b/queries/python/indents.scm
index c02879712..cc13587ec 100644
--- a/queries/python/indents.scm
+++ b/queries/python/indents.scm
@@ -72,6 +72,15 @@
(list_pattern "]" @indent_end)
+(return_statement
+ [
+ (_) @indent_end
+ (_ (_) @indent_end .)
+ (attribute
+ attribute: (_) @indent_end)
+ "return" @indent_end
+ ] .)
+
[
")"
"]"