Skip to content

String literals that end in backslashes don't properly parse as end-of-string in the code viewer #2803

@solarsmithjake

Description

@solarsmithjake

For instance,

string path = @"C:\Work\Projects\my-project\" + assetType.ToString();

will believe that the rest of the code is part of a string, since it parses the \" after my-project as an escape key, instead of respecting the literal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions