diff options
author | Joey Hain | 2023-11-06 01:54:25 +0000 |
---|---|---|
committer | GitHub | 2023-11-06 01:54:25 +0000 |
commit | f73e9a8d15fd5a87d472a49808baf42ba403f9bf (patch) | |
tree | c57d8b378ef5877a5f2894b2dc6845b28bffdbbf /runtime/queries/go/locals.scm | |
parent | a98ad137f9b0678ce9770aaa56a8bf8ca7c51d17 (diff) |
highlights: add type.parameter scope to several more languages (#8718)
* typescript
* go
* haskell
* ocaml
* kotlin (+ bugfix)
Diffstat (limited to 'runtime/queries/go/locals.scm')
-rw-r--r-- | runtime/queries/go/locals.scm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/runtime/queries/go/locals.scm b/runtime/queries/go/locals.scm index aae56257..14a6f3e4 100644 --- a/runtime/queries/go/locals.scm +++ b/runtime/queries/go/locals.scm @@ -1,9 +1,17 @@ ; Scopes -(block) @local.scope +[ + (function_declaration) + (type_declaration) + (block) +] @local.scope ; Definitions +(type_parameter_list + (parameter_declaration + name: (identifier) @local.definition)) + (parameter_declaration (identifier) @local.definition) (variadic_parameter_declaration (identifier) @local.definition) @@ -27,4 +35,4 @@ (identifier) @local.reference (field_identifier) @local.reference - +(type_identifier) @local.reference |