helix/runtime/queries/koto/locals.scm

25 lines
449 B
Scheme
Raw Normal View History

2024-12-20 23:56:13 +08:00
; Scopes
(module (_) @local.scope)
(function
body: (_) @local.scope)
; Definitions
(arg
2025-02-25 01:46:34 +08:00
(identifier) @local.definition.variable.parameter)
2024-12-20 23:56:13 +08:00
(arg
2025-02-25 01:46:34 +08:00
(variable (identifier)) @local.definition.parameter)
2024-12-20 23:56:13 +08:00
(import_item
2025-02-25 01:46:34 +08:00
(identifier) @local.definition.namespace)
2024-12-20 23:56:13 +08:00
(entry_block
2025-02-25 01:46:34 +08:00
(identifier) @local.definition.variable.other.member)
2024-12-20 23:56:13 +08:00
(entry_inline
2025-02-25 01:46:34 +08:00
(identifier) @local.definition.variable.other.member)
2024-12-20 23:56:13 +08:00
; References
(identifier) @local.reference