mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-24 21:44:45 +00:00
Start string location at kind or quote prefix
This commit is contained in:
parent
eede189959
commit
15e2ac3fd7
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