mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
sync locals queries with upstream --------- Co-authored-by: Christian Clason <c.clason@uni-graz.at>
71 lines
1.2 KiB
Scheme
71 lines
1.2 KiB
Scheme
; References
|
|
(identifier) @local.reference
|
|
|
|
; Definitions
|
|
(assignment
|
|
.
|
|
(identifier) @local.definition.var)
|
|
|
|
(assignment
|
|
.
|
|
(tuple_expression
|
|
(identifier) @local.definition.var))
|
|
|
|
(assignment
|
|
.
|
|
(open_tuple
|
|
(identifier) @local.definition.var))
|
|
|
|
(for_binding
|
|
.
|
|
(identifier) @local.definition.var)
|
|
|
|
(for_binding
|
|
.
|
|
(tuple_expression
|
|
(identifier) @local.definition.var))
|
|
|
|
(import_statement
|
|
(identifier) @local.definition.import)
|
|
|
|
(using_statement
|
|
(identifier) @local.definition.import)
|
|
|
|
(selected_import
|
|
(identifier) @local.definition.import)
|
|
|
|
(module_definition
|
|
.
|
|
(identifier) @local.definition.type)
|
|
|
|
(type_head
|
|
(identifier) @local.definition.type)
|
|
|
|
(type_head
|
|
(binary_expression
|
|
.
|
|
(identifier) @local.definition.type))
|
|
|
|
(function_definition
|
|
(signature
|
|
(call_expression
|
|
.
|
|
(identifier) @local.definition.function))) @local.scope
|
|
|
|
(macro_definition
|
|
(signature
|
|
(call_expression
|
|
.
|
|
(identifier) @local.definition.function))) @local.scope
|
|
|
|
; Scopes
|
|
[
|
|
(quote_statement)
|
|
(let_statement)
|
|
(for_statement)
|
|
(while_statement)
|
|
(try_statement)
|
|
(catch_clause)
|
|
(finally_clause)
|
|
(do_clause)
|
|
] @local.scope
|