1
0
mirror of https://github.com/helix-editor/helix synced 2026-01-26 05:38:09 +01:00
helix/runtime/queries/just/locals.scm
2025-05-13 19:01:10 -04:00

38 lines
695 B
Scheme

; This file tells us about the scope of variables so e.g. local
; variables override global functions with the same name
; Scope
(recipe) @local.scope
; Definitions
(alias
name: (identifier) @local.definition.variable)
(assignment
name: (identifier) @local.definition.variable)
(mod
name: (identifier) @local.definition.namespace)
(recipe_parameter
name: (identifier) @local.definition.variable.parameter)
(recipe
name: (identifier) @local.definition.function)
; References
(alias
name: (identifier) @local.reference)
(function_call
name: (identifier) @local.reference)
(recipe_dependency
name: (identifier) @local.reference)
(value
(identifier) @local.reference)