nvim-treesitter/queries/c/folds.scm
Stephan Seitz 7f7ef0af9d folds(c): fold raw compound_statements
This will fold in particular around raw braces
as reported in #2359 while avoiding to have double folds
at functions+braces.
2022-01-28 19:54:26 +01:00

19 lines
307 B
Scheme

[
(for_statement)
(if_statement)
(while_statement)
(switch_statement)
(case_statement)
(function_definition)
(struct_specifier)
(enum_specifier)
(comment)
(preproc_if)
(preproc_elif)
(preproc_else)
(preproc_ifdef)
(initializer_list)
] @fold
(compound_statement
(compound_statement) @fold)