mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -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
|
|
@ -101,13 +101,11 @@
|
|||
"class"
|
||||
"decltype"
|
||||
"constexpr"
|
||||
"delete"
|
||||
"explicit"
|
||||
"final"
|
||||
"friend"
|
||||
"mutable"
|
||||
"namespace"
|
||||
"new"
|
||||
"override"
|
||||
"private"
|
||||
"protected"
|
||||
|
|
@ -119,6 +117,26 @@
|
|||
(auto)
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"new"
|
||||
"delete"
|
||||
|
||||
;; these keywords are not supported by the parser
|
||||
;"eq"
|
||||
;"not_eq"
|
||||
;
|
||||
;"compl"
|
||||
;"and"
|
||||
;"or"
|
||||
;
|
||||
;"bitand"
|
||||
;"bitand_eq"
|
||||
;"bitor"
|
||||
;"bitor_eq"
|
||||
;"xor"
|
||||
;"xor_eq"
|
||||
] @keyword.operator
|
||||
|
||||
"::" @operator
|
||||
"..." @operator
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue