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

Rust apostraphe character (named lifetime) being parsed as string #1339

Closed
CoenraadS opened this issue Mar 7, 2018 · 1 comment
Closed

Comments

@CoenraadS
Copy link

CoenraadS commented Mar 7, 2018

const ALL_CARDS: &'static [&'static char] = &["2"]

image

Another case:
fn foo<'a> (first: &'a str, second: &'a str) => () { }

@CoenraadS CoenraadS changed the title Rust apostraphe character being parsed as string Rust apostraphe character (named lifetime) being parsed as string Mar 7, 2018
@CoenraadS
Copy link
Author

I found this regex: (')([^'\\]|(\\(x\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)))(') from https://github.com/carols10cents/rust.tmbundle/blob/3005916b957bfede01792734a595922a0c1c82d7/Syntaxes/Rust.tmLanguage#L98

@Golmote Golmote closed this as completed in 926f6f8 Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant