Add @keyword.operator for operators that are English words and add @exception for Java/JS

This commit is contained in:
Stephan Seitz 2020-09-13 15:08:11 +02:00 committed by Stephan Seitz
parent c1313ba7af
commit 7e3c4f8089
10 changed files with 75 additions and 27 deletions

View file

@ -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