summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
Diffstat (limited to 'Parser')
-rw-r--r--Parser/pegen/parse_string.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Parser/pegen/parse_string.c b/Parser/pegen/parse_string.c
index 9a78a28..834239e 100644
--- a/Parser/pegen/parse_string.c
+++ b/Parser/pegen/parse_string.c
@@ -449,6 +449,15 @@ static void fstring_shift_children_locations(expr_ty n, int lineno, int col_offs
case Tuple_kind:
fstring_shift_seq_locations(n, n->v.Tuple.elts, lineno, col_offset);
break;
+ case JoinedStr_kind:
+ fstring_shift_seq_locations(n, n->v.JoinedStr.values, lineno, col_offset);
+ break;
+ case FormattedValue_kind:
+ shift_expr(n, n->v.FormattedValue.value, lineno, col_offset);
+ if (n->v.FormattedValue.format_spec) {
+ shift_expr(n, n->v.FormattedValue.format_spec, lineno, col_offset);
+ }
+ break;
default:
return;
}