mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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)
|
||||
|
||||
(function_declaration
|
||||
((identifier) @definition.var)
|
||||
((identifier) @definition.function)
|
||||
(#set! definition.var.scope parent))
|
||||
|
||||
(method_definition
|
||||
((property_identifier) @definition.var)
|
||||
((property_identifier) @definition.function)
|
||||
(#set! definition.var.scope parent))
|
||||
|
||||
; References
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue