Files
helix/runtime/queries/just/locals.scm
PoliorceticsandGitHub b3fb7c1ca3 grammars: update Just to support latest versions (#16019)
Bring up Just support to 1.56.0, adding more keywords, injections, and other highlighted items.
2026-07-20 11:28:37 -05:00

44 lines
814 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
alias_name: (identifier) @local.definition.variable)
(assignment
name: (identifier) @local.definition.variable)
(function
name: (identifier) @local.definition.function)
(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)
(module_path
name: (identifier) @local.reference)
(recipe_dependency
name: (identifier) @local.reference)
(value
(identifier) @local.reference)