From 0ed69e50a8a80e46992cb0fb7bfbaf843e88636e Mon Sep 17 00:00:00 2001 From: Sergio Alejandro Vargas Date: Tue, 20 Jul 2021 21:29:16 -0500 Subject: 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. --- queries/lua/highlights.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'queries/lua') diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 290f709ce..66e0efe3f 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -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 -- cgit v1.2.3-70-g09d2