Skip to content

Commit

Permalink
Align arguments in a function call in C.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Triton171 committed Sep 19, 2023
1 parent 0b7abe3 commit 7dfdba8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/queries/c/indents.scm
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@
(parameter_list
. (parameter_declaration) @anchor
(#set! "scope" "tail")) @align
(argument_list
. (_) @anchor
(#set! "scope" "tail")) @align

0 comments on commit 7dfdba8

Please sign in to comment.