Skip to content

Commit 0bf1db3

Browse files
committed
highlights(cpp): add alternative operator names
These keywords are now supported by the parser. See: tree-sitter/tree-sitter-cpp#179
1 parent 57c09f4 commit 0bf1db3

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

queries/cpp/highlights.scm

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,17 @@
158158
"new"
159159
"delete"
160160

161-
;; these keywords are not supported by the parser
162-
;"eq"
163-
;"not_eq"
164-
;
165-
;"compl"
166-
;"and"
167-
;"or"
168-
;
169-
;"bitand"
170-
;"bitand_eq"
171-
;"bitor"
172-
;"bitor_eq"
173-
;"xor"
174-
;"xor_eq"
161+
"xor"
162+
"bitand"
163+
"bitor"
164+
"compl"
165+
"not"
166+
"xor_eq"
167+
"and_eq"
168+
"or_eq"
169+
"not_eq"
170+
"and"
171+
"or"
175172
] @keyword.operator
176173

177174
"<=>" @operator

0 commit comments

Comments
 (0)