vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Language-c no-colorize case

Open lisw05 opened this issue 1 year ago • 1 comments

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:

  1. coding like these: bug case: img_v3_02e6_7f429fd4-4ca3-42f3-916c-cfe9f67bd9dg
  2. normal case 1: img_v3_02e6_a32bdc21-e7bb-42aa-a05e-56e4fef9c0ag
  3. normal case 2: img_v3_02e6_a9cab630-8e83-4b39-a691-1f316e6af4ag

lisw05 avatar Aug 28 '24 06:08 lisw05

Can you share a copy/pastable snippet that I can use to reproduce the issue?

alexr00 avatar Sep 02 '24 18:09 alexr00

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();
    }
}

lisw05 avatar Sep 03 '24 01:09 lisw05

Thank you! Duplicate of upstream issue: https://github.com/jeff-hykin/better-c-syntax/issues/4

alexr00 avatar Sep 03 '24 14:09 alexr00