aboutsummaryrefslogtreecommitdiffstats
path: root/queries/lua
diff options
context:
space:
mode:
Diffstat (limited to 'queries/lua')
-rw-r--r--queries/lua/highlights.scm36
1 files changed, 21 insertions, 15 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm
index 28247491d..1ad10480e 100644
--- a/queries/lua/highlights.scm
+++ b/queries/lua/highlights.scm
@@ -2,25 +2,31 @@
;;; Builtins
;; Keywords
+(
+ [
+ "if"
+ "then"
+ "else"
+ "elseif"
+ ] @conditional
+ "end" @confitional
+)
-[
-"if"
-"then"
-"else"
-"elseif"
- ] @conditional
-[
-"do"
-"while"
-"repeat"
-"for"
-"in"
-] @repeat
+(
+ [
+ "do"
+ "while"
+ "repeat"
+ "for"
+ ] @repeat
+
+ "end" @repeat
+)
[
+"in"
"local"
-"end"
"return"
(break_statement)
"goto"
@@ -63,7 +69,7 @@
(spread) @constant ;; "..."
;; Nodes
-(_ "function" @function "end" @function) ;; Any node that has both funtion and end in it
+("function" @function "end" @function) ;; Any node that has both funtion and end in it
(table ["{" "}"] @constructor)
(comment) @comment