2023-03-04 04:31:11 -05:00
|
|
|
; Scopes
|
|
|
|
|
[
|
|
|
|
|
(source_file)
|
|
|
|
|
(field)
|
|
|
|
|
(for_clause)
|
2023-07-22 15:29:32 +02:00
|
|
|
] @local.scope
|
2023-03-04 04:31:11 -05:00
|
|
|
|
|
|
|
|
; References
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.reference
|
2023-03-04 04:31:11 -05:00
|
|
|
|
|
|
|
|
; Definitions
|
|
|
|
|
(import_spec
|
2023-07-22 15:29:32 +02:00
|
|
|
path: (string) @local.definition.import)
|
2023-03-04 04:31:11 -05:00
|
|
|
|
|
|
|
|
(field
|
|
|
|
|
(label
|
2024-01-06 15:05:50 +09:00
|
|
|
(identifier) @local.definition.field))
|
2023-03-04 04:31:11 -05:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(package_identifier) @local.definition.namespace
|
2023-03-04 04:31:11 -05:00
|
|
|
|
|
|
|
|
(for_clause
|
2024-03-03 11:00:11 +01:00
|
|
|
(identifier) @local.definition.var
|
2023-03-04 04:31:11 -05:00
|
|
|
(expression))
|
|
|
|
|
|
|
|
|
|
(for_clause
|
|
|
|
|
(identifier)
|
2024-03-03 11:00:11 +01:00
|
|
|
(identifier) @local.definition.var
|
2023-03-04 04:31:11 -05:00
|
|
|
(expression))
|
|
|
|
|
|
|
|
|
|
(let_clause
|
2024-03-03 11:00:11 +01:00
|
|
|
(identifier) @local.definition.var)
|