From 1eb6c7484b74f1759f18559b5fb4b991b56c8d8d Mon Sep 17 00:00:00 2001 From: Rebecca Valentine Date: Thu, 19 Jan 2023 15:17:23 -0800 Subject: [PATCH] Adds GH tag queries --- queries/tags.scm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 queries/tags.scm diff --git a/queries/tags.scm b/queries/tags.scm new file mode 100644 index 0000000..9647566 --- /dev/null +++ b/queries/tags.scm @@ -0,0 +1,9 @@ +(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 + +(type_definition declarator: (type_identifier) @name) @definition.type + +(enum_specifier name: (type_identifier) @name) @definition.type