aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/c/indents.scm
diff options
context:
space:
mode:
authorDaniel Ebert2023-09-19 14:29:52 +0000
committerBlaž Hrastnik2023-12-15 06:59:54 +0000
commit3e79a35656461e7143134e0b65b2e78d30df7785 (patch)
treead8bc61adb63dafbb18e9056731fd55d64a53dae /runtime/queries/c/indents.scm
parenta5acfdbf104db82310b71da988ef8a5df43ffd49 (diff)
Align arguments in a function call in C.
Since the tree-sitter grammar is not very good at parsing function calls while they're being written, this is not yet super useful. However, it prevents the new `hybrid` indent heuristic from choosing these lines as a baseline, making it more robust.
Diffstat (limited to 'runtime/queries/c/indents.scm')
-rw-r--r--runtime/queries/c/indents.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/queries/c/indents.scm b/runtime/queries/c/indents.scm
index 058d8031..0e97ed2b 100644
--- a/runtime/queries/c/indents.scm
+++ b/runtime/queries/c/indents.scm
@@ -36,3 +36,6 @@
(parameter_list
. (parameter_declaration) @anchor
(#set! "scope" "tail")) @align
+(argument_list
+ . (_) @anchor
+ (#set! "scope" "tail")) @align