From 276718c24549c23fd7947a515520b8ae905f3425 Mon Sep 17 00:00:00 2001 From: mliszcz Date: Tue, 11 Oct 2022 14:31:19 +0200 Subject: highlights(cpp): add alternative operator names These keywords are now supported by the parser. See: https://github.com/tree-sitter/tree-sitter-cpp/pull/179 --- queries/cpp/highlights.scm | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'queries/cpp') diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index f68cf3a3..fb7ee2e5 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -158,20 +158,17 @@ "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" + "xor" + "bitand" + "bitor" + "compl" + "not" + "xor_eq" + "and_eq" + "or_eq" + "not_eq" + "and" + "or" ] @keyword.operator "<=>" @operator -- cgit v1.2.3