-
-
Notifications
You must be signed in to change notification settings - Fork 19
Sharing my C/C++ folding rules #23
Copy link
Copy link
Closed
Description
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:
{...},(...),[...]- block comments
- preprocessor conditionals
- raw strings:
R"(...)"
Folding doesn't happen inside of:
- line and block comments
- string and character literals
- raw strings
Known issues that I don't know how to fix:
- Line continuation (
\at the end of line) is not handled correctly in string and character literals, line comments, and everywhere else. - Unbalanced brackets after
#defineshould be ignored, but they aren't.
Config:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels