From 7ccfe61f4eec192ed570bbe4612dc9b13c333ca7 Mon Sep 17 00:00:00 2001 From: tinger Date: Wed, 26 Nov 2025 14:17:13 +0100 Subject: [PATCH] runtime: Remove aligned indents in C --- runtime/queries/c/indents.scm | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/runtime/queries/c/indents.scm b/runtime/queries/c/indents.scm index 0fa4b9b7..e88231a3 100644 --- a/runtime/queries/c/indents.scm +++ b/runtime/queries/c/indents.scm @@ -35,19 +35,3 @@ (#not-kind-eq? @indent "compound_statement") (#set! "scope" "header")) -(parameter_list - . (parameter_declaration) @anchor - ) @align -(argument_list - . (_) @anchor - ) @align -; These are a bit opinionated since some people just indent binary/ternary expressions spanning multiple lines. -; Since they are only triggered when a newline is inserted into an already complete binary/ternary expression, -; this should happen rarely, so it is not a big deal either way. -; Additionally, adding these queries has the advantage of preventing such continuation lines from being used -; as the baseline when the `hybrid` indent heuristic is used (which is desirable since their indentation is so inconsistent). -(binary_expression - ) @anchor @align -(conditional_expression - "?" @anchor - ) @align -- 2.51.2