vscode
vscode copied to clipboard
Language-c no-colorize case
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: Version: 1.92.2 (user setup)
- OS Version: Windows 11 23H2 22631.4037
Steps to Reproduce:
- coding like these: bug case:
- normal case 1:
- normal case 2:
Can you share a copy/pastable snippet that I can use to reproduce the issue?
Can you share a copy/pastable snippet that I can use to reproduce the issue?
yes, same as the content in pictures: bug case:
#if 0 //xxxxxxx
do_something(argu); //xxxxxx
#endif
if(A==B)
{
for(i=0;i<k;i++)
{
do_somethingB();
}
}
normal case 1:
#if 0
do_something(argu); //xxxxxx
#endif
if(A==B)
{
for(i=0;i<k;i++)
{
do_somethingB();
}
}
normal case 2:
#if 0 //xxxxxx
#endif
if(A==B)
{
for(i=0;i<k;i++)
{
do_somethingB();
}
}
I can add one more situation that the code behind macro can be colorized normally. normal case 3:
#if 0 //xxxxxx
do_something(argu); //xxxxxx
#endif
if(A==B)
{
for(i=0;i<k;i++)
{
do_somethingB();
}
}
Thank you! Duplicate of upstream issue: https://github.com/jeff-hykin/better-c-syntax/issues/4