mirror of https://github.com/helix-editor/helix
Add c-sharp textobjects (#3494)
Co-authored-by: Gustavo Bogarín <gbogarin@outlook.com> Co-authored-by: Gustavo Bogarín <gbogarin@posibillian.tech>pull/3560/head
parent
86a8ea57bb
commit
e066782782
@ -0,0 +1,21 @@
|
|||||||
|
[
|
||||||
|
(class_declaration body: (_) @class.inside)
|
||||||
|
(struct_declaration body: (_) @class.inside)
|
||||||
|
(interface_declaration body: (_) @class.inside)
|
||||||
|
(enum_declaration body: (_) @class.inside)
|
||||||
|
(delegate_declaration)
|
||||||
|
(record_declaration body: (_) @class.inside)
|
||||||
|
(record_struct_declaration body: (_) @class.inside)
|
||||||
|
] @class.around
|
||||||
|
|
||||||
|
(constructor_declaration body: (_) @function.inside) @function.around
|
||||||
|
|
||||||
|
(destructor_declaration body: (_) @function.inside) @function.around
|
||||||
|
|
||||||
|
(method_declaration body: (_) @function.inside) @function.around
|
||||||
|
|
||||||
|
(property_declaration (_) @function.inside) @function.around
|
||||||
|
|
||||||
|
(parameter (_) @parameter.inside) @parameter.around
|
||||||
|
|
||||||
|
(comment)+ @comment.around
|
Loading…
Reference in New Issue