From 429036317aa67b097fa4a04b8dda5551266b942e Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Mon, 3 Aug 2020 21:40:23 -0500 Subject: Lua: highlight function name --- queries/lua/highlights.scm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'queries/lua') diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 7a69434dd..01bb48ec4 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -25,11 +25,11 @@ ) [ -"in" -"local" -"return" -(break_statement) -"goto" + "in" + "local" + "return" + (break_statement) + "goto" ] @keyword ;; Operators @@ -77,9 +77,12 @@ (nil) @constant.builtin (spread) @constant ;; "..." -;; Nodes -("function" @function "end" @function) ;; Any node that has both funtion and end in it +;; Functions +("function" @keyword.function + [(function_name) (identifier)] @function + "end" @keyword.function) +;; Nodes (table ["{" "}"] @constructor) (comment) @comment (string) @string -- cgit v1.2.3-70-g09d2