Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adepke opened this issue Jul 11, 2023 · 2 comments
Open

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

adepke opened this issue Jul 11, 2023 · 2 comments
Labels
C: Syntax T: bug A bug in an existing language feature

Comments

@adepke
Copy link

adepke commented Jul 11, 2023

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

@michaelblyons
Copy link
Collaborator

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

@jfcherng
Copy link
Collaborator

jfcherng commented Jul 11, 2023

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

@deathaxe deathaxe added T: bug A bug in an existing language feature C: Syntax labels Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Syntax T: bug A bug in an existing language feature
Projects
None yet
Development

No branches or pull requests

4 participants