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++) Integer literals with quote delimiters in preprocessor highlighted wrong #3777

Open
akhtarmdsaad opened this issue Feb 26, 2024 · 0 comments

Comments

@akhtarmdsaad
Copy link

akhtarmdsaad commented Feb 26, 2024

Information

  • Language: C++

image

Description
In C++, you can use the digit separator ' to define large numbers in a more readable way. For example, you can define 1'000'000 as follows:

Code snippet
#define MILLION 1'000'000

Test page

The code is being highlighted incorrectly.
# include<iostream>
# define INF 1'000'000
int main(){
    std::cout<<"Hello World";
    int x = 1'000'000;
}

[Proposed labels]:

  1. good first issue
  2. help-wanted
  3. bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant