mirror of https://github.com/ray-x/go.nvim
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 localspull/420/head
parent
974b2f8518
commit
41c126718a
@ -1,15 +1,15 @@
|
||||
; extends
|
||||
|
||||
(var_spec) @scope
|
||||
(var_spec) @local.scope
|
||||
|
||||
(field_declaration
|
||||
name: (field_identifier) @definition.field)
|
||||
name: (field_identifier) @local.definition.field)
|
||||
|
||||
(method_spec
|
||||
name: (field_identifier) @method.name
|
||||
parameters: (parameter_list) @method.parameter_list) @interface.method.declaration
|
||||
name: (field_identifier) @function.method.name
|
||||
parameters: (parameter_list) @function.method.parameter_list) @local.interface.method.declaration
|
||||
|
||||
(type_declaration
|
||||
(type_spec
|
||||
name: (type_identifier) @name
|
||||
type: [(struct_type) (interface_type)] @type)) @start
|
||||
name: (type_identifier) @local.name
|
||||
type: [(struct_type) (interface_type)] @local.type)) @local.start
|
||||
|
Loading…
Reference in New Issue