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>
This commit is contained in:
Michael Davis 2025-06-06 11:48:17 -04:00
parent 4dd4ba798c
commit 25b299abc5
No known key found for this signature in database

View File

@ -2,6 +2,7 @@
[
(function_declaration)
(method_declaration)
(type_declaration)
(block)
] @local.scope