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
"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