mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-02 09:52:34 +00:00
Start string location at kind or quote prefix
This commit is contained in:
parent
6211a3a3a8
commit
3397737a76
8 changed files with 57 additions and 18 deletions
|
@ -205,7 +205,9 @@ where
|
|||
|
||||
// Check if we have a string:
|
||||
if self.chr0 == Some('"') || self.chr0 == Some('\'') {
|
||||
return self.lex_string(saw_b, saw_r, saw_u, saw_f);
|
||||
return self
|
||||
.lex_string(saw_b, saw_r, saw_u, saw_f)
|
||||
.map(|(_, tok, end_pos)| (start_pos, tok, end_pos));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue