From 82559fe7ff00f5cce030f4d5231a270267087624 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Sun, 18 Jan 2026 23:23:50 +0000 Subject: Fix for #5 --- src/parser/parser_expr.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/parser/parser_expr.c') diff --git a/src/parser/parser_expr.c b/src/parser/parser_expr.c index 6d95f12..ef3980c 100644 --- a/src/parser/parser_expr.c +++ b/src/parser/parser_expr.c @@ -800,7 +800,14 @@ static ASTNode *create_fstring_block(ParserContext *ctx, const char *content) } if (depth == 1 && *p == ':' && !colon) { - colon = p; + if ((p + 1) < end_brace && *(p + 1) == ':') + { + p++; + } + else + { + colon = p; + } } p++; } -- cgit v1.2.3