highlight(lua): add more operators

This commit is contained in:
Thomas Vigouroux 2020-04-20 19:13:24 +02:00
parent d05728e155
commit c4862c656e

View file

@ -13,24 +13,48 @@
"while" @keyword "while" @keyword
"repeat" @keyword "repeat" @keyword
"for" @keyword "for" @keyword
(break_statement) @keyword
"goto" @keyword
;; Operators ;; Operators
"~=" @operator "~=" @operator
"==" @operator "==" @operator
"<=" @operator
">=" @operator
"not" @operator "not" @operator
"and" @operator "and" @operator
"or" @operator "or" @operator
"<" @operator
">" @operator
"+" @operator
"-" @operator
"%" @operator
"/" @operator
"//" @operator
"*" @operator
"^" @operator
"&" @operator
"~" @operator
"|" @operator
">>" @operator
"<<" @operator
".." @operator
"#" @operator
;; Constants ;; Constants
(false) @constant (false) @constant
(true) @constant (true) @constant
(nil) @constant (nil) @constant
(spread) @constant ;; "..."
;; Nodes ;; Nodes
(function "function" @function "end" @function) (function "function" @function "end" @function)
(table "{" @operator "}" @operator)
(comment) @comment (comment) @comment
(string) @string (string) @string
(number) @constant (number) @number
(label_statement) @label
;; Error ;; Error
(ERROR) @Error (ERROR) @Error