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

@ -39,22 +39,22 @@
; Function calls
(call_expression
function: (identifier) @function)
function: (identifier) @function.call)
(call_expression
function: (scoped_identifier
(identifier) @function .))
(identifier) @function.call .))
(call_expression
function: (field_expression
field: (field_identifier) @function))
field: (field_identifier) @function.call))
(generic_function
function: (identifier) @function)
function: (identifier) @function.call)
(generic_function
function: (scoped_identifier
name: (identifier) @function))
name: (identifier) @function.call))
(generic_function
function: (field_expression
field: (field_identifier) @function))
field: (field_identifier) @function.call))
; Assume other uppercase names are enum constructors
((field_identifier) @constant