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
|
|
@ -54,10 +54,10 @@
|
|||
(enum_entry ["case" @keyword])
|
||||
|
||||
; Function calls
|
||||
(call_expression (simple_identifier) @function) ; foo()
|
||||
(call_expression (simple_identifier) @function.call) ; foo()
|
||||
(call_expression ; foo.bar.baz(): highlight the baz()
|
||||
(navigation_expression
|
||||
(navigation_suffix (simple_identifier) @function)))
|
||||
(navigation_suffix (simple_identifier) @function.call)))
|
||||
((navigation_expression
|
||||
(simple_identifier) @type) ; SomeType.method(): highlight SomeType as a type
|
||||
(#lua-match? @type "^[A-Z]"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue