Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C switch highlighting can be wrong wtih a macro #403

Closed
alexr00 opened this issue Oct 21, 2019 · 1 comment
Closed

C switch highlighting can be wrong wtih a macro #403

alexr00 opened this issue Oct 21, 2019 · 1 comment

Comments

@alexr00
Copy link

alexr00 commented Oct 21, 2019

From @jaudiger in microsoft/vscode#82849

  • VSCode Version: 1.39.2
  • OS Version: Windows 10 (64 bits) + ArchLinux WSL

Steps to Reproduce:

  1. Use the following code inside a test.c file:
switch (0)
{
case 0:
    break;

#ifdef MY_DEFINE
case 1:
    break;
#endif

default:
    break;
}
  1. The file contains a wrong highlighting case for 1.

image

Does this issue occur when C/C++ extension is disabled?: Yes

@matter123
Copy link
Collaborator

Duplicate of #31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants