Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting of '"' is incorrect #55

Open
carols10cents opened this issue Jul 20, 2020 · 1 comment
Open

Syntax highlighting of '"' is incorrect #55

carols10cents opened this issue Jul 20, 2020 · 1 comment
Labels

Comments

@carols10cents
Copy link
Owner

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

@rtsuk
Copy link
Collaborator

rtsuk commented Aug 31, 2020

@reitermarkus does this look easy to fix? I've not gotten into the syntax stuff yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants