From 0928b918a023ecaccb07d5191fec98c0380f8286 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Sat, 5 Sep 2020 09:27:13 -0500 Subject: Lua: update highlights --- queries/lua/highlights.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'queries/lua') diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 9f7661a45..be221885f 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -79,7 +79,7 @@ ] @operator ;; Punctuation -[ "," "." ] @punctuation.delimiter +[ "," "." ":"] @punctuation.delimiter ;; Brackets [ @@ -104,6 +104,12 @@ [(function_name) (identifier)] @function "end" @keyword.function) +(property_identifier) @property +(method) @method + +(function_call (identifier) @function . (arguments)) +(function_call (field_expression (property_identifier) @function) . (arguments)) + ;; Nodes (table ["{" "}"] @constructor) (comment) @comment -- cgit v1.2.3-70-g09d2