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