mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -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
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
[
|
||||
"alias"
|
||||
"and"
|
||||
"begin"
|
||||
"break"
|
||||
"class"
|
||||
|
|
@ -13,10 +12,8 @@
|
|||
"do"
|
||||
"end"
|
||||
"ensure"
|
||||
"in"
|
||||
"module"
|
||||
"next"
|
||||
"or"
|
||||
"rescue"
|
||||
"retry"
|
||||
"return"
|
||||
|
|
@ -24,6 +21,12 @@
|
|||
"yield"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"and"
|
||||
"or"
|
||||
"in"
|
||||
] @keyword.operator
|
||||
|
||||
[
|
||||
"case"
|
||||
"else"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue