-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 #defines break highlighting #3928
Comments
|
1 similar comment
|
Can you confirm a fix: #3930 |
Is this issue resolved? |
Not yet, I think I've started this needs to be contextual, so it's a bit more complicated than what we have so far. |
I believe this issue is a replica of #4054 |
Nope, entirely different issue. |
Can I work on this issue? |
Go for it. |
Describe the issue
Integer literals in C++ may be written as 1'000'000'000 instead of 1000000000 for greater readability. When this is used inside a
#define
, if breaks highlighting which treats the rest of the code as being inside a string.Which language seems to have the issue?
cpp
Are you using
highlight
orhighlightAuto
?highlight
Sample Code to Reproduce
Expected behavior
The token 1'000'000'000 should be highlighted as a number, and the following code should also be highlighted normally, instead of as if it is inside a string:
Additional context
The snippet below seems to be highlighted fine, so the issue is likely the interplay between quote-separated literals and defines.
The text was updated successfully, but these errors were encountered: