Open cmsong-shina opened 2 years ago
Hi @cmsong-shina . Bracket pair colorization is a feature the core engine of VS Code. I'm not aware of a way to influence this feature via the API extensions use to integrate with VS Code.
I opened the following issue against VS Code. When that is addressed, it should allow us to correct this issue.
Its not only bracket problem other sentance also enabled...
I am curious is this example can be related:
#if defined(A) // comment
#define B // comment
#endif
#if defined(A)
#define B
#endif
#if defined(A)
#define B // comment
#endif
#ifdef A
#define B // comment
#endif
#if defined(A) // comment
#define B
#endif
@tomasz-kaczmarek That issue is not related. Can you check if it repros with our C/C++ extension disabled? If not, can you file a new bug with more repro info, because I don't repro that.
Environment
Bug Summary and Steps to Reproduce
Just create single
main.c
file and paste the code.Expected behavior
Brace next
#if 0
should be ignored but it is not.When I put new line it fine.
And multi line comment also fine.
Code sample and Logs
main.c
setting.json
no notable output from C/C++: Log Diagnostics and language server.
Screenshots
Additional context
No response