Closed j5shi closed 6 years ago
The {
after extern "C"
is considered as a parenthesis. It seems complicate to avoid this problem.
But I think we can just left any open parenthese/bracket/brace/... alone if the close part is not found (same for the close part), this is quite simple and reasonable, what do you think? Afterall, this can happen.
Actually, nobody can tell whether there is a right parenthesis following.
Actually it's not about whether there's a closed parenthesis following or not, it's about nested parenthesis/brackets/braces.
You can replace #ifdef
and #endif
into (
and )
, it's almost the same thing.
Describe the bug
the
#endif
is considered not to match with#ifdef
in above C/CPP code.To Reproduce
Expected behavior
the
#endif
is should match with#ifdef
in above C/CPP code and have the same color.Screenshots
Additional context
No.