We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The C lexer treats #define as a comment in (Looks like C++ does as well), at least the style appears the same.
maybe adding it around line 14?
<analyse first="true" > <regex pattern="(?m)^\s*#include <" score="0.1" /> <regex pattern="(?m)^\s*#ifn?def " score="0.1" /> </analyse>
ETA - nope, those are comments, too!
It's fine if they don't get special treatment, but it's rough that they can fade into the comments.
Thank you!
Reproduced Here
same for include and if
The text was updated successfully, but these errors were encountered:
Shorter repro case, for what I believe is the same issue.
#define TEST "//test"
HTML:
<span class="cp">#define TEST "</span><span class="c1">//test"</span>
Expected:
<span class="cp">#define TEST "//test"</span>
Playground link: https://swapoff.org/chroma/playground/#eyJsYW5ndWFnZSI6IkMiLCJzdHlsZSI6Im1vbm9rYWlsaWdodCIsInRleHQiOiIjZGVmaW5lIFRFU1QgXCIvL3Rlc3RcIiIsImNsYXNzZXMiOnRydWV9
Apologies if this is unrelated.
As a side note, this syntax is valid C, I was unsure and tried it. This program prints TEST: //gris.
TEST: //gris
#include <stdio.h> #define TEST "//gris" int main() { printf("TEST: %s\n", TEST); return 0; }
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Describe the bug
The C lexer treats #define as a comment in (Looks like C++ does as well), at least the style appears the same.
maybe adding it around line 14?
ETA - nope, those are comments, too!
It's fine if they don't get special treatment, but it's rough that they can fade into the comments.
Thank you!
To Reproduce
Reproduced Here
same for include and if
The text was updated successfully, but these errors were encountered: