Skip to content

Commit

Permalink
Create tree-sitter-r-tags.scm
Browse files Browse the repository at this point in the history
Add tags.scm file for R, from 
https://github.com/r-lib/tree-sitter-r/blob/main/queries/tags.scm
(which has MIT licence, as already mentioned in the readme)
  • Loading branch information
gdmcdonald authored Jan 20, 2025
1 parent c395be2 commit 139260e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions aider/queries/tree-sitter-r-tags.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(binary_operator
lhs: (identifier) @name
operator: "<-"
rhs: (function_definition)
) @definition.function

(binary_operator
lhs: (identifier) @name
operator: "="
rhs: (function_definition)
) @definition.function

(call
function: (identifier) @name
) @reference.call

(call
function: (namespace_operator
rhs: (identifier) @name
)
) @reference.call

0 comments on commit 139260e

Please sign in to comment.