Start simple string at quote mark

This commit is contained in:
Charlie Marsh 2022-10-16 11:25:46 -04:00
parent 15e2ac3fd7
commit ca62bd1593
11 changed files with 31 additions and 33 deletions

View file

@ -492,9 +492,9 @@ where
is_unicode: bool,
is_fstring: bool,
) -> LexResult {
let start_pos = self.get_pos();
let quote_char = self.next_char().unwrap();
let mut string_content = String::new();
let start_pos = self.get_pos();
// If the next two characters are also the quote character, then we have a triple-quoted
// string; consume those two characters and ensure that we require a triple-quote to close