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

@ -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]"))