better-cpp-syntax icon indicating copy to clipboard operation
better-cpp-syntax copied to clipboard

case keyword followed by character literal without space breaks syntax highlighting

Open MrExquisite opened this issue 3 years ago • 0 comments

Checklist

  • [X] This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"
  • [ ] This bug exists for C
  • [X] This bug exists for C++
  • [ ] This bug exists for Objective-C
  • [ ] This bug exists for Objective-C++

The code with a problem is:

switch(i)
{
  case'g':break;
  case'H':break;
  case'\0':break;
  case'\'':break;
  case'\\':break;
}

It looks like:

Screenshot Theme: Monokai

It should look like:

Screenshot_correct (Screenshot taken from C)

MrExquisite avatar Jun 02 '21 18:06 MrExquisite