Skip to content

Commit

Permalink
Add support for properties and fields for C# in treesitter backend
Browse files Browse the repository at this point in the history
  • Loading branch information
fnix2 committed Sep 28, 2022
1 parent 8709932 commit 67ad26f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/aerial/backends/treesitter/language_kind_map.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ return {
struct_declaration = "Struct",
enum_declaration = "Enum",
constructor_declaration = "Constructor",
property_declaration = "Property",
field_declaration = "Field",
},
dart = {
class_definition = "Class",
Expand Down
8 changes: 8 additions & 0 deletions queries/c_sharp/aerial.scm
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@

(constructor_declaration
name: (identifier) @name) @type

(property_declaration
name: (identifier) @name) @type

(field_declaration
(variable_declaration
(variable_declarator
(identifier) @name))) @type

0 comments on commit 67ad26f

Please sign in to comment.