Skip to content

Commit

Permalink
Merge pull request #189 from BekaValentine/master
Browse files Browse the repository at this point in the history
Adds GH tags queries
  • Loading branch information
amaanq authored Aug 11, 2023
2 parents 869f1be + b9a11dd commit 2e6cf68
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions queries/tags.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
(struct_specifier name: (type_identifier) @name body:(_)) @definition.class

(declaration type: (union_specifier name: (type_identifier) @name)) @definition.class

(function_declarator declarator: (identifier) @name) @definition.function

(function_declarator declarator: (field_identifier) @name) @definition.function

(function_declarator declarator: (qualified_identifier scope: (namespace_identifier) @scope name: (identifier) @name)) @definition.method

(type_definition declarator: (type_identifier) @name) @definition.type

(enum_specifier name: (type_identifier) @name) @definition.type

(class_specifier name: (type_identifier) @name) @definition.class

0 comments on commit 2e6cf68

Please sign in to comment.