refactor: Update r-tags.scm to use more specific name tags

This commit is contained in:
Paul Gauthier (aider) 2025-03-12 14:25:12 -07:00
parent 9e824e6070
commit 44eb9af7bc

View file

@ -1,21 +1,21 @@
(binary_operator (binary_operator
lhs: (identifier) @name lhs: (identifier) @name.definition.function
operator: "<-" operator: "<-"
rhs: (function_definition) rhs: (function_definition)
) @definition.function ) @definition.function
(binary_operator (binary_operator
lhs: (identifier) @name lhs: (identifier) @name.definition.function
operator: "=" operator: "="
rhs: (function_definition) rhs: (function_definition)
) @definition.function ) @definition.function
(call (call
function: (identifier) @name function: (identifier) @name.reference.call
) @reference.call ) @reference.call
(call (call
function: (namespace_operator function: (namespace_operator
rhs: (identifier) @name rhs: (identifier) @name.reference.call
) )
) @reference.call ) @reference.call