Skip to content

Raw string with curly braces #698

Description

@alexr00

Checklist

  • [x ] This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

If Disabling that^ makes the problem go away, then follow this to make an issue on the C++ extension:
https://github.com/microsoft/vscode-cpptools/issues/new/choose

The code with a problem is:

enum class ID_STRINGS_EXT : int {
    SERVER_LISTENING = ID_UNUSED_STRING(
        R"(Server is listening :\n\t{})"
        "hello world"),
    INVALID_ARGUMENT = ID_UNUSED_STRING("Invalid Argument"),
    NOT_FOUND        = ID_UNUSED_STRING("Not Found")
};

It looks like:

Image

It should look like:

Removing the curly braces in the raw string resolves the issue.

Originally from @guoiaoang in microsoft/vscode#299789

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