Unnamed repository; edit this file 'description' to name the repository.
queries: Recognize methods as a locals scope
This fixes a bug in highlighting parameter variables in Go methods. See <https://redirect.github.com/helix-editor/helix/issues/13674#issuecomment-2935514099>
Michael Davis 9 months ago
parent 4dd4ba7 · commit 25b299a
-rw-r--r--runtime/queries/go/locals.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/queries/go/locals.scm b/runtime/queries/go/locals.scm
index 070667ca..2ba63bed 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