Split func/method definition from calls in several programming language queries

This commit is contained in:
lfenzo 2022-07-29 21:09:58 -03:00 committed by Stephan Seitz
parent 77675b6706
commit c784720917
15 changed files with 32 additions and 32 deletions

View file

@ -41,16 +41,16 @@
;; Function calls ----------------
(call_expression
function: (identifier) @function)
function: (identifier) @function.call)
(((_
function: (selector_expression field: (identifier) @function)
function: (selector_expression field: (identifier) @function.call)
arguments: (_) @_args)
(#not-has-type? @_args arguments_list)))
((call_expression
function: (binded_identifier name: (identifier) @function)
@function))
@function.call))
;; Function definitions ---------