From 25b299abc5e4b1716fd7367089c76f72cb25162c Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Fri, 6 Jun 2025 11:48:17 -0400 Subject: [PATCH] queries: Recognize methods as a locals scope This fixes a bug in highlighting parameter variables in Go methods. See --- runtime/queries/go/locals.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/queries/go/locals.scm b/runtime/queries/go/locals.scm index 070667cad..2ba63bed8 100644 --- a/runtime/queries/go/locals.scm +++ b/runtime/queries/go/locals.scm @@ -2,6 +2,7 @@ [ (function_declaration) + (method_declaration) (type_declaration) (block) ] @local.scope