From 7e3c4f808940a981a034709163724eb5a7546e2d Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sun, 13 Sep 2020 15:08:11 +0200 Subject: Add @keyword.operator for operators that are English words and add @exception for Java/JS --- queries/cpp/highlights.scm | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'queries/cpp') diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index 15bc3ac72..c026d54bf 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -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 -- cgit v1.2.3-70-g09d2