mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(lua): replace operator list with field
This commit is contained in:
parent
7efc1b58a8
commit
d6ce707613
1 changed files with 6 additions and 24 deletions
|
|
@ -70,36 +70,18 @@
|
||||||
] @keyword.function)
|
] @keyword.function)
|
||||||
|
|
||||||
; Operators
|
; Operators
|
||||||
|
(binary_expression
|
||||||
|
operator: _ @operator)
|
||||||
|
|
||||||
|
(unary_expression
|
||||||
|
operator: _ @operator)
|
||||||
|
|
||||||
[
|
[
|
||||||
"and"
|
"and"
|
||||||
"not"
|
"not"
|
||||||
"or"
|
"or"
|
||||||
] @keyword.operator
|
] @keyword.operator
|
||||||
|
|
||||||
[
|
|
||||||
"+"
|
|
||||||
"-"
|
|
||||||
"*"
|
|
||||||
"/"
|
|
||||||
"%"
|
|
||||||
"^"
|
|
||||||
"#"
|
|
||||||
"=="
|
|
||||||
"~="
|
|
||||||
"<="
|
|
||||||
">="
|
|
||||||
"<"
|
|
||||||
">"
|
|
||||||
"="
|
|
||||||
"&"
|
|
||||||
"~"
|
|
||||||
"|"
|
|
||||||
"<<"
|
|
||||||
">>"
|
|
||||||
"//"
|
|
||||||
".."
|
|
||||||
] @operator
|
|
||||||
|
|
||||||
; Punctuations
|
; Punctuations
|
||||||
[
|
[
|
||||||
";"
|
";"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue