Skip to content

Multiline comments after #define are broken #527

Description

@alexr00

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"
  • This bug exists for C (I checked, it doesn't repro with C, only C++)
  • This bug exists for C++
  • This bug exists for Objective-C (doesn't repro)
  • This bug exists for Objective-C++ (doesn't repro)

The code with a problem is:

#define VAR 123 /*
* selfrnei
*/

#if VAR === 123 /*
* happens if 123
*/

It looks like:

image

It should look like:

image

Original from @ashegoulding in microsoft/vscode#110174

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions