mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-07 04:08:39 +00:00
Add source_path to ParseError
This commit is contained in:
parent
a66902406f
commit
3742f9117b
5 changed files with 45 additions and 35 deletions
|
@ -293,7 +293,7 @@ impl<'a> FStringParser<'a> {
|
|||
|
||||
fn parse_fstring_expr(source: &str) -> Result<Expr, ParseError> {
|
||||
let fstring_body = format!("({})", source);
|
||||
parse_expression(&fstring_body)
|
||||
parse_expression(&fstring_body, "<fstring>")
|
||||
}
|
||||
|
||||
/// Parse an fstring from a string, located at a certain position in the sourcecode.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue