summaryrefslogtreecommitdiff
path: root/src/parser/parser_stmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/parser_stmt.c')
-rw-r--r--src/parser/parser_stmt.c9
1 files changed, 8 insertions, 1 deletions
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)
{