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_stmt.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/parser/parser_stmt.c') diff --git a/src/parser/parser_stmt.c b/src/parser/parser_stmt.c index daf3f72..8480716 100644 --- a/src/parser/parser_stmt.c +++ b/src/parser/parser_stmt.c @@ -1771,7 +1771,14 @@ char *process_printf_sugar(ParserContext *ctx, const char *content, int newline, } if (depth == 1 && *p == ':' && !colon) { - colon = p; + if (*(p + 1) == ':') + { + p++; + } + else + { + colon = p; + } } if (depth == 0) { -- cgit v1.2.3