aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/python
diff options
context:
space:
mode:
authorDaniel Ebert2023-08-11 10:24:37 +0000
committerBlaž Hrastnik2023-08-11 14:44:02 +0000
commit36a59e4482120e66980b7f8f260a174b82b9415d (patch)
treedfc184a5c86d8cefdbc7e4313320c3230331db3f /runtime/queries/python
parenteab0d4fa4b5c3a98d94b90acf54fd22692148ce3 (diff)
Improve C, Rust & Python indent queries & add @align captures.
Diffstat (limited to 'runtime/queries/python')
-rw-r--r--runtime/queries/python/indents.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/queries/python/indents.scm b/runtime/queries/python/indents.scm
index 835b40d3..67bc76ad 100644
--- a/runtime/queries/python/indents.scm
+++ b/runtime/queries/python/indents.scm
@@ -73,3 +73,12 @@
(else_clause
"else" @outdent)
+(parameters
+ .
+ (identifier) @anchor
+ (#set! "scope" "tail")) @align
+(argument_list
+ .
+ (_) @anchor
+ (#set! "scope" "tail")) @align
+