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-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
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.function)
|
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-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
|
|
|
|