41c126718a
* Adjusted local.scm queries to fix crashes when using treesitter post-v0.9.2 * Accounted for 'local' subtable in treesitter matches when querying locals
16 lines
412 B
Scheme
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
|