vscode
vscode copied to clipboard
Add `#ifdef` and `#ifndef` as `brackets`
Fixes https://github.com/microsoft/vscode/issues/160744 extension of https://github.com/microsoft/vscode/pull/159997 (https://github.com/microsoft/vscode/issues/159586)

Cannot add #else, #elif, #elifdef or #elifndef as brackets
as Vscode does not support 'middle'/'inside' brackets
however, it does not cause any issues
@hediet This is important to get checked in ASAP -- otherwise the C/C++ experience is regressed with VS Code Insiders, i.e. red #endif appear all over the place with code bases that have heavy #ifdef/#ifndef usage.
Closing, as we revert the #... brackets for cpp in #161589.
@hediet Okay, that seems fine. What were the problems though? I was only aware of the problem with #endif not matching with #ifdef and #ifndef which got fixed by this PR.
@sean-mcmanus you reported the problem here: https://github.com/microsoft/vscode/issues/159586#issuecomment-1248899801

This one is not fixable.