2024-11-11 08:39:00 +01:00
|
|
|
; References
|
|
|
|
|
(identifier) @local.reference
|
|
|
|
|
|
2025-10-27 11:43:58 +01:00
|
|
|
; Definitions
|
2022-12-03 11:42:07 +01:00
|
|
|
(assignment
|
2025-10-27 11:43:58 +01:00
|
|
|
.
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.definition.var)
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2022-12-03 11:42:07 +01:00
|
|
|
(assignment
|
2025-10-27 11:43:58 +01:00
|
|
|
.
|
2022-11-02 16:21:44 -05:00
|
|
|
(tuple_expression
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.definition.var))
|
2022-11-02 16:21:44 -05:00
|
|
|
|
2025-10-27 11:43:58 +01:00
|
|
|
(assignment
|
|
|
|
|
.
|
|
|
|
|
(open_tuple
|
|
|
|
|
(identifier) @local.definition.var))
|
|
|
|
|
|
2020-11-09 20:05:34 +01:00
|
|
|
(for_binding
|
2025-10-27 11:43:58 +01:00
|
|
|
.
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.definition.var)
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2020-11-09 20:05:34 +01:00
|
|
|
(for_binding
|
2025-10-27 11:43:58 +01:00
|
|
|
.
|
2022-11-02 16:21:44 -05:00
|
|
|
(tuple_expression
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.definition.var))
|
2020-11-09 20:05:34 +01:00
|
|
|
|
2025-10-27 11:43:58 +01:00
|
|
|
(import_statement
|
|
|
|
|
(identifier) @local.definition.import)
|
|
|
|
|
|
|
|
|
|
(using_statement
|
|
|
|
|
(identifier) @local.definition.import)
|
|
|
|
|
|
|
|
|
|
(selected_import
|
|
|
|
|
(identifier) @local.definition.import)
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2025-10-27 11:43:58 +01:00
|
|
|
(module_definition
|
|
|
|
|
.
|
2024-11-11 08:39:00 +01:00
|
|
|
(identifier) @local.definition.type)
|
2022-11-02 16:21:44 -05:00
|
|
|
|
2024-11-11 08:39:00 +01:00
|
|
|
(type_head
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.definition.type)
|
2022-11-02 16:21:44 -05:00
|
|
|
|
2024-11-11 08:39:00 +01:00
|
|
|
(type_head
|
|
|
|
|
(binary_expression
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.type))
|
|
|
|
|
|
2020-11-09 20:05:34 +01:00
|
|
|
(function_definition
|
2024-04-14 07:23:46 -05:00
|
|
|
(signature
|
|
|
|
|
(call_expression
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.function))) @local.scope
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(macro_definition
|
2024-04-14 07:23:46 -05:00
|
|
|
(signature
|
|
|
|
|
(call_expression
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.function))) @local.scope
|
2020-11-09 20:05:34 +01:00
|
|
|
|
2025-10-27 11:43:58 +01:00
|
|
|
; Scopes
|
2020-11-09 20:05:34 +01:00
|
|
|
[
|
2024-11-11 08:39:00 +01:00
|
|
|
(quote_statement)
|
|
|
|
|
(let_statement)
|
2022-11-02 16:21:44 -05:00
|
|
|
(for_statement)
|
|
|
|
|
(while_statement)
|
2020-11-09 20:05:34 +01:00
|
|
|
(try_statement)
|
2022-11-02 16:21:44 -05:00
|
|
|
(catch_clause)
|
2020-11-09 20:05:34 +01:00
|
|
|
(finally_clause)
|
2022-11-02 16:21:44 -05:00
|
|
|
(do_clause)
|
2023-07-22 15:29:32 +02:00
|
|
|
] @local.scope
|