mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-23 04:55:25 +00:00
Address comments
This commit is contained in:
parent
9efa872023
commit
7f552e4594
3 changed files with 35 additions and 15 deletions
|
@ -26,7 +26,7 @@ impl<'a> StringParser<'a> {
|
|||
str_start: Location,
|
||||
str_end: Location,
|
||||
) -> Self {
|
||||
let offset = kind.to_string().len() + if triple_quoted { 3 } else { 1 };
|
||||
let offset = kind.prefix_len() + if triple_quoted { 3 } else { 1 };
|
||||
Self {
|
||||
chars: source.chars().peekable(),
|
||||
kind,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue