nvim-treesitter / nvim-treesitter-textobjects

Apache License 2.0
2.2k stars 200 forks source link

feat(c_sharp): add class.outer support for records, enums, interfaces #637

Closed marcinjahn closed 3 months ago

marcinjahn commented 5 months ago

Extends support for recognizing class.outer for the following types:

Before these changes, only structs and classes (both needed to have at least 1 member) had been supported.

Closes #636

Note: Ideally, there should also be support for structs, interfaces, classes and enums without curly braces (e.g. class MyClass; or class MyClass();), but it seems that tree-sitter does not support that syntax yet, tree inspection shows errors.

marcinjahn commented 4 months ago

Any love for C#?