2024-07-28 17:54:10 +04:00
|
|
|
; 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
|
2024-08-09 19:26:48 +04:00
|
|
|
name: (identifier) @local.definition)
|
2024-07-28 17:54:10 +04:00
|
|
|
|
|
|
|
(assignment
|
2024-08-09 19:26:48 +04:00
|
|
|
name: (identifier) @local.definition)
|
2024-07-28 17:54:10 +04:00
|
|
|
|
2024-08-09 19:26:48 +04:00
|
|
|
(mod
|
2024-07-28 17:54:10 +04:00
|
|
|
name: (identifier) @local.definition)
|
|
|
|
|
2024-08-09 19:26:48 +04:00
|
|
|
(recipe_parameter
|
2024-07-28 17:54:10 +04:00
|
|
|
name: (identifier) @local.definition)
|
|
|
|
|
2024-08-09 19:26:48 +04:00
|
|
|
(recipe
|
2024-07-28 17:54:10 +04:00
|
|
|
name: (identifier) @local.definition)
|
|
|
|
|
|
|
|
; References
|
|
|
|
|
|
|
|
(alias
|
|
|
|
name: (identifier) @local.reference)
|
|
|
|
|
2024-08-09 19:26:48 +04:00
|
|
|
(function_call
|
2024-07-28 17:54:10 +04:00
|
|
|
name: (identifier) @local.reference)
|
|
|
|
|
2024-08-09 19:26:48 +04:00
|
|
|
(recipe_dependency
|
2024-07-28 17:54:10 +04:00
|
|
|
name: (identifier) @local.reference)
|
|
|
|
|
|
|
|
(value
|
|
|
|
(identifier) @local.reference)
|