mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
highlight(lua): add more operators
This commit is contained in:
parent
d05728e155
commit
c4862c656e
1 changed files with 25 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue