summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authormliszcz <liszcz.michal@gmail.com>2022-10-11 14:31:19 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-10-11 14:37:14 +0200
commit276718c24549c23fd7947a515520b8ae905f3425 (patch)
treefe0680b40e1a73e1068d1e69d7dbfac5021ffab8 /queries
parent57c09f4d11dc2bcbc819b425c339adde0804b300 (diff)
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
Diffstat (limited to 'queries')
-rw-r--r--queries/cpp/highlights.scm25
1 files changed, 11 insertions, 14 deletions
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