mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
Split func/method definition from calls in several programming language queries
This commit is contained in:
parent
77675b6706
commit
c784720917
15 changed files with 32 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue