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

Wrong color on #endif containing code with inline comment #13041

Closed
xamix opened this issue Dec 10, 2024 · 1 comment
Closed

Wrong color on #endif containing code with inline comment #13041

xamix opened this issue Dec 10, 2024 · 1 comment
Labels

Comments

@xamix
Copy link

xamix commented Dec 10, 2024

Environment

  • OS and Version: W10
  • VS Code Version: 1.95.3
  • C/C++ Extension Version: v1.23.2 (pre-release)

Bug Summary and Steps to Reproduce

Bug Summary:

If you use the following C code (I compile with MSVC 2022 compiler Kit and CMake tools):

#ifdef USE_DEV_BOARD
    #define TEST_ENABLED  1
#else
    #define TEST_ENABLED  0  // FIXME
#endif

Then the #endif color comes RED:

Image

But the code seem to compile correctly, and if you remove the comment then the color seem good (modulo the issue #13029 which seem to be also present with #define):

Image

Configuration and Logs

None

Other Extensions

No response

Additional context

No response

@sean-mcmanus
Copy link
Contributor

@xamix Our extension doesn't implement that colorization (repros with the C/C++ extension disabled). It's from VS Code, which in turn gets it from https://github.com/jeff-hykin/better-cpp-syntax/issues . You should file an issue there if one doesn't already exist (I saw some existing issues which might cover this case, but I'm not sure).

@sean-mcmanus sean-mcmanus closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants