refactor: Update python-tags.scm with more specific name tags

This commit is contained in:
Paul Gauthier (aider) 2025-03-12 14:24:53 -07:00
parent ba6bb527a7
commit 9e824e6070

View file

@ -1,14 +1,14 @@
(module (expression_statement (assignment left: (identifier) @name) @definition.constant))
(module (expression_statement (assignment left: (identifier) @name.definition.constant) @definition.constant))
(class_definition
name: (identifier) @name) @definition.class
name: (identifier) @name.definition.class) @definition.class
(function_definition
name: (identifier) @name) @definition.function
name: (identifier) @name.definition.function) @definition.function
(call
function: [
(identifier) @name
(identifier) @name.reference.call
(attribute
attribute: (identifier) @name)
attribute: (identifier) @name.reference.call)
]) @reference.call