mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
777a2bf28a
commit
aa1424fabc
1 changed files with 14 additions and 17 deletions
|
|
@ -1,18 +1,15 @@
|
|||
[
|
||||
(class_declaration)
|
||||
(constructor_declaration)
|
||||
(enum_declaration)
|
||||
(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)
|
||||
body: [
|
||||
(declaration_list)
|
||||
(switch_body)
|
||||
(enum_member_declaration_list)
|
||||
] @fold
|
||||
|
||||
accessors: [
|
||||
(accessor_list)
|
||||
] @fold
|
||||
|
||||
initializer: [
|
||||
(initializer_expression)
|
||||
] @fold
|
||||
|
||||
(block) @fold
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue