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

Fix escape sequences in Rust lexer #1120

Merged
merged 1 commit into from
May 27, 2019

Conversation

pyrmont
Copy link
Contributor

@pyrmont pyrmont commented May 19, 2019

As discussed in #1075, escaped double quotes were not being interpreted correctly. This was due to an escaped double quote not being included in the escape sequence regex in the Rust lexer.

This commit adds the double quote and the numeral zero (the null character). See:
https://static.rust-lang.org/doc/master/reference.html#characters-and-strings

This fixes #1075.

As discussed in rouge-ruby#1075, escaped double quotes were not being interpreted
correctly. This was due to an escaped double quote not being included in
the escape sequence regex in the Rust lexer.

This commit adds the double quote and the numeral zero (the null
character). See:
https://static.rust-lang.org/doc/master/reference.html#characters-and-strings

This fixes rouge-ruby#1075.
@pyrmont pyrmont merged commit 26226ab into rouge-ruby:master May 27, 2019
@pyrmont pyrmont deleted the bugfix.rust-escape-sequences branch January 8, 2020 20:05
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.

Syntax highlighting in Rust failure: println!("a\"b");
1 participant