mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
Add @keyword.operator for operators that are English words and add @exception for Java/JS
This commit is contained in:
parent
c1313ba7af
commit
7e3c4f8089
10 changed files with 75 additions and 27 deletions
|
|
@ -157,15 +157,19 @@
|
|||
"|"
|
||||
"|="
|
||||
"~"
|
||||
"->"
|
||||
] @operator
|
||||
|
||||
; Keywords
|
||||
[
|
||||
"and"
|
||||
"in"
|
||||
"is"
|
||||
"not"
|
||||
"or"
|
||||
"->"
|
||||
] @operator
|
||||
|
||||
; Keywords
|
||||
"del"
|
||||
] @keyword.operator
|
||||
|
||||
[
|
||||
"assert"
|
||||
|
|
@ -173,7 +177,6 @@
|
|||
"await"
|
||||
"class"
|
||||
"def"
|
||||
"del"
|
||||
"except"
|
||||
"exec"
|
||||
"finally"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue