From b842752d27159da4081d57f39f31d97e8fc83f84 Mon Sep 17 00:00:00 2001 From: Meysam Hadeli <35596795+meysamhadeli@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:09:12 +0330 Subject: [PATCH] feat: add more queries to tree-sitter go --- queries/tags.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/queries/tags.scm b/queries/tags.scm index d87008ab..91427a42 100644 --- a/queries/tags.scm +++ b/queries/tags.scm @@ -28,3 +28,15 @@ name: (type_identifier) @name) @definition.type (type_identifier) @name @reference.type + +(package_clause (package identifier) @name) + +(type_declaration (type_spec name: (type_identifier) @name type: (interface_type))) + +(type_declaration (type_spec name: (type_identifier) @name type: (struct_type))) + +(import_declaration (import_spec) @name) + +(var_declaration (var_spec name: (identifier) @name)) + +(const_declaration (const_spec name: (identifier) @name))