From 53ab5de00a20d64ad59b89c94e56b3dd5e527635 Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Tue, 5 May 2020 12:19:24 -0500 Subject: [PATCH] Fix escaped quotes in raw string literals --- parser/src/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/src/lexer.rs b/parser/src/lexer.rs index 8667165ea..10fb77853 100644 --- a/parser/src/lexer.rs +++ b/parser/src/lexer.rs @@ -530,7 +530,7 @@ where loop { match self.next_char() { Some('\\') => { - if self.chr0 == Some(quote_char) { + if self.chr0 == Some(quote_char) && !is_raw { string_content.push(quote_char); self.next_char(); } else if is_raw {