mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-24 21:44:45 +00:00
Start simple string at quote mark
This commit is contained in:
parent
15e2ac3fd7
commit
ca62bd1593
11 changed files with 31 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue