Skip to content

Commit

Permalink
highlights(cpp): add alternative operator names
Browse files Browse the repository at this point in the history
These keywords are now supported by the parser.
See: tree-sitter/tree-sitter-cpp#179
  • Loading branch information
mliszcz authored and Christian Clason committed Oct 11, 2022
1 parent 57c09f4 commit 276718c
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions queries/cpp/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 276718c

Please sign in to comment.