Packages icon indicating copy to clipboard operation
Packages copied to clipboard

[C++] Shift/stream operators considered arithmetic operators

Open adepke opened this issue 2 years ago • 2 comments

What happened?

In C++, the shift operators >>, <<, >>=, and <<= should not be put in the same scope as basic arithmetic operators > and <. Instead, a new scope such as keyword.operator.shift.c should be introduced.

Example: image

adepke avatar Jul 11 '23 13:07 adepke

I think we have a keyword.operator.bitwise already.

michaelblyons avatar Jul 11 '23 16:07 michaelblyons

the shift operators >>, <<, >>=, and <<= should not be put in the same scope as basic arithmetic operators > and <

> and < are not scoped as arithmetic operators however.

image

jfcherng avatar Jul 11 '23 16:07 jfcherng