mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
feat(c_sharp): Simplify folds by only folding blocks of code instead of
folding the methods and their attributes
This commit is contained in:
parent
3110e0f7cd
commit
e56a393c4b
1 changed files with 14 additions and 17 deletions
|
|
@ -1,18 +1,15 @@
|
||||||
[
|
body: [
|
||||||
(class_declaration)
|
(declaration_list)
|
||||||
(constructor_declaration)
|
(switch_body)
|
||||||
(enum_declaration)
|
(enum_member_declaration_list)
|
||||||
(interface_declaration)
|
|
||||||
(method_declaration)
|
|
||||||
(namespace_declaration)
|
|
||||||
(struct_declaration)
|
|
||||||
|
|
||||||
(do_statement)
|
|
||||||
(for_each_statement)
|
|
||||||
(for_statement)
|
|
||||||
(if_statement)
|
|
||||||
(switch_statement)
|
|
||||||
(try_statement)
|
|
||||||
(using_statement)
|
|
||||||
(while_statement)
|
|
||||||
] @fold
|
] @fold
|
||||||
|
|
||||||
|
accessors: [
|
||||||
|
(accessor_list)
|
||||||
|
] @fold
|
||||||
|
|
||||||
|
initializer: [
|
||||||
|
(initializer_expression)
|
||||||
|
] @fold
|
||||||
|
|
||||||
|
(block) @fold
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue