Sharing my C/C++ folding rules #44
HolyBlackCat
started this conversation in
Show and tell
Replies: 2 comments
-
|
@HolyBlackCat thanks for sharing your rules. For The |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@daiyam The #define A /*
// this should be folded
#define B */
#define A {
// this shouldn't be folded
#define B }The second case (unbalanced braces in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! Not sure if this is the right place to do it, but I just wanted to share the C/C++ folding rules ended up using.
What is folded:
{...},(...),[...]R"(...)"Folding doesn't happen inside of:
Known issues that I don't know how to fix:
\at the end of line) is not handled correctly in string and character literals, line comments, and everywhere else.#defineshould be ignored, but they aren't.Config:
Beta Was this translation helpful? Give feedback.
All reactions