diff options
author | Gustavo Bogarín | 2022-08-27 14:24:47 +0000 |
---|---|---|
committer | GitHub | 2022-08-27 14:24:47 +0000 |
commit | e06678278267a76a1d9e29b36d4734bcb39eabec (patch) | |
tree | ec21288ba4d1adb72cbbeb6d3fd943a9791301ba /runtime/queries/c-sharp/textobjects.scm | |
parent | 86a8ea57bb3cb651cf9bee3fd1ae37f7e134c526 (diff) |
Add c-sharp textobjects (#3494)
Co-authored-by: Gustavo Bogarín <gbogarin@outlook.com>
Co-authored-by: Gustavo Bogarín <gbogarin@posibillian.tech>
Diffstat (limited to 'runtime/queries/c-sharp/textobjects.scm')
-rw-r--r-- | runtime/queries/c-sharp/textobjects.scm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/queries/c-sharp/textobjects.scm b/runtime/queries/c-sharp/textobjects.scm new file mode 100644 index 00000000..c5afe5f4 --- /dev/null +++ b/runtime/queries/c-sharp/textobjects.scm @@ -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 |