mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-11 18:58:00 +03:00
39 lines
737 B
Scheme
39 lines
737 B
Scheme
; Scopes
|
|
|
|
[
|
|
(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)
|
|
|
|
(short_var_declaration
|
|
left: (expression_list
|
|
(identifier) @local.definition))
|
|
|
|
(var_spec
|
|
(identifier) @local.definition)
|
|
|
|
(for_statement
|
|
(range_clause
|
|
left: (expression_list
|
|
(identifier) @local.definition)))
|
|
|
|
(const_declaration
|
|
(const_spec
|
|
name: (identifier) @local.definition))
|
|
|
|
; References
|
|
|
|
(identifier) @local.reference
|
|
(field_identifier) @local.reference
|
|
(type_identifier) @local.reference
|