mirror of https://github.com/helix-editor/helix
Update Hare grammar (#11130)
This change uses <https://git.sr.ht/~ecs/tree-sitter-hare/> that is up-to-date and linked from the official documentation.pull/11159/head
parent
b0f3fe7556
commit
ec0bdb3976
@ -1,20 +1,19 @@
|
|||||||
(unit) @local.scope
|
(sub_unit) @local.scope
|
||||||
|
|
||||||
(function_declaration) @local.scope
|
(function_declaration) @local.scope
|
||||||
|
(compound_expression) @local.scope
|
||||||
|
|
||||||
(global_binding
|
(global_binding
|
||||||
(identifier) @local.definition)
|
(identifier) @local.definition)
|
||||||
(constant_binding
|
(constant_binding
|
||||||
(identifier) @local.definition)
|
(identifier) @local.definition)
|
||||||
(type_bindings
|
(type_binding
|
||||||
(identifier) @local.definition)
|
(identifier) @local.definition)
|
||||||
|
|
||||||
(function_declaration
|
(function_declaration
|
||||||
(prototype
|
(identifier) @local.definition)
|
||||||
(parameter_list
|
(function_declaration
|
||||||
(parameters
|
(parameter (name) @local.definition))
|
||||||
(parameter
|
|
||||||
(name) @local.definition)))))
|
|
||||||
|
|
||||||
(identifier) @local.reference
|
(identifier) @local.reference
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue