mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Use @definition.function for method & func definitions
This commit is contained in:
parent
81dd6c988c
commit
57f4dbd47b
1 changed files with 2 additions and 2 deletions
|
|
@ -23,11 +23,11 @@
|
||||||
(identifier) @definition.import)
|
(identifier) @definition.import)
|
||||||
|
|
||||||
(function_declaration
|
(function_declaration
|
||||||
((identifier) @definition.var)
|
((identifier) @definition.function)
|
||||||
(#set! definition.var.scope parent))
|
(#set! definition.var.scope parent))
|
||||||
|
|
||||||
(method_definition
|
(method_definition
|
||||||
((property_identifier) @definition.var)
|
((property_identifier) @definition.function)
|
||||||
(#set! definition.var.scope parent))
|
(#set! definition.var.scope parent))
|
||||||
|
|
||||||
; References
|
; References
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue