2023-03-27 06:54:26 +02:00
|
|
|
; Scopes
|
|
|
|
|
[
|
|
|
|
|
(template_body)
|
|
|
|
|
(lambda_expression)
|
2023-04-28 00:24:35 +02:00
|
|
|
(function_definition)
|
2023-04-01 19:53:19 +02:00
|
|
|
(block)
|
2023-10-15 14:43:34 -04:00
|
|
|
(for_expression)
|
2023-07-22 15:29:32 +02:00
|
|
|
] @local.scope
|
2023-03-27 06:54:26 +02:00
|
|
|
|
|
|
|
|
; References
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.reference
|
2023-03-27 06:54:26 +02:00
|
|
|
|
|
|
|
|
; Definitions
|
|
|
|
|
(function_declaration
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.function)
|
2023-03-27 06:54:26 +02:00
|
|
|
|
|
|
|
|
(function_definition
|
2024-01-21 22:05:44 +09:00
|
|
|
name: (identifier) @local.definition.function
|
2023-10-15 14:40:36 -04:00
|
|
|
(#set! definition.var.scope parent))
|
2023-03-27 06:54:26 +02:00
|
|
|
|
|
|
|
|
(parameter
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.parameter)
|
2023-03-27 06:54:26 +02:00
|
|
|
|
2023-04-01 19:53:19 +02:00
|
|
|
(class_parameter
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.parameter)
|
2023-04-01 19:53:19 +02:00
|
|
|
|
2023-09-08 16:02:29 -04:00
|
|
|
(lambda_expression
|
2023-07-22 15:29:32 +02:00
|
|
|
parameters: (identifier) @local.definition.var)
|
2023-09-08 16:02:29 -04:00
|
|
|
|
2023-03-27 06:54:26 +02:00
|
|
|
(binding
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.var)
|
2023-03-27 06:54:26 +02:00
|
|
|
|
|
|
|
|
(val_definition
|
2023-07-22 15:29:32 +02:00
|
|
|
pattern: (identifier) @local.definition.var)
|
2023-03-27 06:54:26 +02:00
|
|
|
|
|
|
|
|
(var_definition
|
2023-07-22 15:29:32 +02:00
|
|
|
pattern: (identifier) @local.definition.var)
|
2023-03-27 06:54:26 +02:00
|
|
|
|
|
|
|
|
(val_declaration
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.var)
|
2023-03-27 06:54:26 +02:00
|
|
|
|
|
|
|
|
(var_declaration
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.var)
|
2023-03-27 06:54:26 +02:00
|
|
|
|
2023-10-15 14:43:34 -04:00
|
|
|
(for_expression
|
2024-03-21 20:44:35 +09:00
|
|
|
enumerators: (enumerators
|
|
|
|
|
(enumerator
|
|
|
|
|
(tuple_pattern
|
|
|
|
|
(identifier) @local.definition.var))))
|