mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Add C++ folds and C comment/preproc folds
This commit is contained in:
parent
3c1399b94e
commit
8bc5d1ff3f
2 changed files with 15 additions and 0 deletions
|
|
@ -4,4 +4,10 @@
|
|||
(while_statement)
|
||||
(translation_unit)
|
||||
(function_definition)
|
||||
(struct_specifier)
|
||||
(comment)
|
||||
(preproc_if)
|
||||
(preproc_elif)
|
||||
(preproc_else)
|
||||
(preproc_ifdef)
|
||||
] @fold
|
||||
|
|
|
|||
9
queries/cpp/fold.scm
Normal file
9
queries/cpp/fold.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
(for_range_loop)
|
||||
(class_specifier)
|
||||
(template_declaration)
|
||||
(namespace_definition)
|
||||
(try_statement)
|
||||
(catch_clause)
|
||||
(lambda_expression)
|
||||
] @fold
|
||||
Loading…
Add table
Add a link
Reference in a new issue