go.nvim/after/queries/go/locals.scm
Allen Horine 41c126718a
Updates to treesitter queries to support upstream changes (#425)
* Adjusted local.scm queries to fix crashes when using treesitter post-v0.9.2

* Accounted for 'local' subtable in treesitter matches when querying locals
2024-02-02 20:00:53 +11:00

16 lines
412 B
Scheme

; extends
(var_spec) @local.scope
(field_declaration
name: (field_identifier) @local.definition.field)
(method_spec
name: (field_identifier) @function.method.name
parameters: (parameter_list) @function.method.parameter_list) @local.interface.method.declaration
(type_declaration
(type_spec
name: (type_identifier) @local.name
type: [(struct_type) (interface_type)] @local.type)) @local.start