forked from IndianBoy42/tree-sitter-just
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply changes from Amaan's query updates
Co-authored-by: Amaan Qureshi <[email protected]>
- Loading branch information
Showing
9 changed files
with
262 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
; 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 | ||
|
||
; definition sources | ||
; Definitions | ||
|
||
(alias left: (identifier) @local.definition.variable) | ||
|
||
(assignment left: (identifier) @local.definition.variable) | ||
|
||
(module name: (identifier) @local.definition.namespace) | ||
|
||
(parameter name: (identifier) @local.definition.variable) | ||
|
||
(recipe_header name: (identifier) @local.definition.function) | ||
|
||
; reference locations | ||
; References | ||
|
||
(alias right: (identifier) @local.reference.variable) | ||
|
||
(function_call name: (identifier) @local.reference.function) | ||
|
||
(dependency name: (identifier) @local.reference.function) | ||
|
||
(dependency_expression name: (identifier) @local.reference.function) | ||
|
||
(value (identifier) @local.reference.variable) |
Oops, something went wrong.