; C++ folds query — @fold marks foldable multi-line nodes.

(function_definition) @fold

(struct_specifier) @fold
(enum_specifier) @fold
(union_specifier) @fold
(class_specifier) @fold
(namespace_definition) @fold
(template_declaration) @fold

(compound_statement) @fold
(if_statement) @fold
(for_statement) @fold
(while_statement) @fold
(switch_statement) @fold
(try_statement) @fold
(catch_clause) @fold

(initializer_list) @fold
