From 7f7ef0af9d47906d1a20c59b7eae3adbf93acd04 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 26 Jan 2022 21:43:18 +0100 Subject: [PATCH] folds(c): fold raw `compound_statement`s This will fold in particular around raw braces as reported in #2359 while avoiding to have double folds at functions+braces. --- queries/c/folds.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/queries/c/folds.scm b/queries/c/folds.scm index 9ef083e0c..80c3039b6 100644 --- a/queries/c/folds.scm +++ b/queries/c/folds.scm @@ -13,6 +13,7 @@ (preproc_else) (preproc_ifdef) (initializer_list) - (compound_statement) ] @fold + (compound_statement + (compound_statement) @fold)