highlights(lua): Fix method calls

The usual `function_call` query would highlight the objects at the
beginning of a method call. The `method` query has to account for this,
and highlight the identifier as a variable again.
This commit is contained in:
Sergio Alejandro Vargas 2021-07-20 21:29:16 -05:00 committed by Thomas Vigouroux
parent 4c64b3283d
commit 0ed69e50a8

View file

@ -131,9 +131,9 @@
(function_definition ["function" "end"] @keyword.function)
(property_identifier) @property
(method) @method
(function_call (identifier) @function . (arguments))
(function_call [(identifier) @variable (_)] (method) @method . (arguments))
(function_call (field_expression (property_identifier) @function) . (arguments))
;; Parameters