Skip to content

#ifdef/endif colorization matching doesn't work correctly with C/C++ #160744

@sean-mcmanus

Description

@sean-mcmanus

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: Version: 1.72.0-insider (user setup)
    Commit: 835ace5
    Date: 2022-09-12T05:16:16.290Z
    Electron: 19.0.12
    Chromium: 102.0.5005.167
    Node.js: 16.14.2
    V8: 10.2.154.15-electron.0
    OS: Windows_NT x64 10.0.22621
    Sandboxed: Yes
    It doesn't repro with non-Insiders.

Steps to Reproduce:

  1. Use a .c or .cpp file with
#ifdef FOO
#endif

Bug: The matching code doesn't handle this case (and #ifndef, #else, #elif, #elifdef, #elifndef):
image

The C/C++ extension is not enabled.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions