diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-18 23:23:50 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-18 23:23:50 +0000 |
| commit | 82559fe7ff00f5cce030f4d5231a270267087624 (patch) | |
| tree | d6571b5376ca153d46947b83ae94508de714b089 /src/parser/parser_expr.c | |
| parent | 562e010dd47ec1e238017369ea481700d826b68d (diff) | |
Fix for #5
Diffstat (limited to 'src/parser/parser_expr.c')
| -rw-r--r-- | src/parser/parser_expr.c | 9 |
1 files changed, 8 insertions, 1 deletions
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++; } |
