From c4862c656ec4a8edc8c33974779920c104dfee4a Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Mon, 20 Apr 2020 19:13:24 +0200 Subject: highlight(lua): add more operators --- queries/lua/highlights.scm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'queries/lua') diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 6efdece7..4ce331fa 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -13,24 +13,48 @@ "while" @keyword "repeat" @keyword "for" @keyword +(break_statement) @keyword +"goto" @keyword ;; Operators "~=" @operator "==" @operator +"<=" @operator +">=" @operator "not" @operator "and" @operator "or" @operator +"<" @operator +">" @operator + +"+" @operator +"-" @operator +"%" @operator +"/" @operator +"//" @operator +"*" @operator +"^" @operator +"&" @operator +"~" @operator +"|" @operator +">>" @operator +"<<" @operator +".." @operator +"#" @operator ;; Constants (false) @constant (true) @constant (nil) @constant +(spread) @constant ;; "..." ;; Nodes (function "function" @function "end" @function) +(table "{" @operator "}" @operator) (comment) @comment (string) @string -(number) @constant +(number) @number +(label_statement) @label ;; Error (ERROR) @Error -- cgit v1.2.3