2024-07-28 15:54:10 +02:00
|
|
|
; From <https://github.com/IndianBoy42/tree-sitter-just/blob/6c2f018ab1d90946c0ce029bb2f7d57f56895dff/queries-flavored/helix/textobjects.scm>
|
|
|
|
;
|
|
|
|
; Specify how to navigate around logical blocks in code
|
2023-04-14 17:03:21 +02:00
|
|
|
|
2024-07-28 15:54:10 +02:00
|
|
|
(recipe
|
|
|
|
(recipe_body) @function.inside) @function.around
|
2023-04-14 17:03:21 +02:00
|
|
|
|
2024-07-28 15:54:10 +02:00
|
|
|
(parameters
|
|
|
|
((_) @parameter.inside . ","? @parameter.around)) @parameter.around
|
2023-04-14 17:03:21 +02:00
|
|
|
|
2024-07-28 15:54:10 +02:00
|
|
|
(dependency_expression
|
|
|
|
(_) @parameter.inside) @parameter.around
|
2023-04-14 17:03:21 +02:00
|
|
|
|
2024-07-28 15:54:10 +02:00
|
|
|
(function_call
|
|
|
|
arguments: (sequence
|
|
|
|
(expression) @parameter.inside) @parameter.around) @function.around
|
2023-04-14 17:03:21 +02:00
|
|
|
|
|
|
|
(comment) @comment.around
|