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

Support raw strings in Rust lexer #1399

Merged
merged 1 commit into from Jan 22, 2020

Conversation

KamilaBorowska
Copy link
Contributor

@KamilaBorowska KamilaBorowska commented Jan 20, 2020

Fixes #1398

GitHub syntax highlights them correctly if that helps. There is no special behavior for \, those are raw strings.

println!(r"\n\");
println!(r#"a"b\"#);
println!(r##"r#""#"##);
println!(r###"r##"r#""#"##"###);

@KamilaBorowska KamilaBorowska force-pushed the support-raw-strings branch 2 times, most recently from 70c4fe1 to aea9c87 Compare January 20, 2020 11:41
@pyrmont pyrmont self-assigned this Jan 20, 2020
@pyrmont pyrmont added the needs-review The PR needs to be reviewed label Jan 20, 2020
@pyrmont pyrmont merged commit 22ac678 into rouge-ruby:master Jan 22, 2020
@pyrmont pyrmont removed the needs-review The PR needs to be reviewed label Jan 22, 2020
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

Successfully merging this pull request may close these issues.

Rust lexer doesn't handle r# strings
2 participants