mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00: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
|
|
@ -65,18 +65,18 @@
|
|||
|
||||
|
||||
(call_expression
|
||||
function: (identifier) @function)
|
||||
function: (identifier) @function.call)
|
||||
|
||||
(call_expression
|
||||
function: (field_expression
|
||||
field: (identifier) @method))
|
||||
field: (identifier) @method.call))
|
||||
|
||||
((call_expression
|
||||
function: (identifier) @constructor)
|
||||
(#lua-match? @constructor "^[A-Z]"))
|
||||
|
||||
(generic_function
|
||||
function: (identifier) @function)
|
||||
function: (identifier) @function.call)
|
||||
|
||||
(
|
||||
(identifier) @function.builtin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue