From 50a77bbc22055fc5665d5de3c7a135f5990e9132 Mon Sep 17 00:00:00 2001 From: Sergio Alejandro Vargas Date: Wed, 21 Jul 2021 13:28:35 -0500 Subject: highlights(lua): Organize `function_call` queries --- queries/lua/highlights.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'queries/lua') diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 66e0efe3f..ba793524f 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -132,9 +132,12 @@ (property_identifier) @property -(function_call (identifier) @function . (arguments)) -(function_call [(identifier) @variable (_)] (method) @method . (arguments)) -(function_call (field_expression (property_identifier) @function) . (arguments)) +(function_call + [((identifier) @variable (method) @method) + ((_) (method) @method) + (identifier) @function + (field_expression (property_identifier) @function)] + . (arguments)) ;; Parameters (parameters -- cgit v1.2.3-70-g09d2