Skip to content

Better handling of switch statements and braces within macro bodies #236688

Open
@joaomspires

Description

When writing C or C++ code there's often the need to use macros.

Some of those macros may have incomplete switch statements or unmatched braces, all of which will wreak havoc with the syntax highlighter and with the bracket pair colorization algorithm.

It would be awesome if a braceless switch didn't cause the #endif preprocessor directive to be colored wrong and for bracket pair colorization to be disabled within macro bodies.

Image

Image

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions