Skip to content

Syntax highlighting of '"' is incorrect #55

Description

@carols10cents

To reproduce:

// what should happen
struct SyntaxHighlightingWorks {
    field: i32,
}

const MYCHARS: &'static [char] = &['"'];

// what shouldn't happen
struct SyntaxHighlightingBroken {
    field: i32,
}

The second struct definition should be highlighted in the same way as the first struct definition is rather than behaving as an unclosed string literal.

Screenshot of the undesired behavior:

Screen Shot 2020-07-20 at 11 33 53 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions