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_stmt.c | |
| parent | 562e010dd47ec1e238017369ea481700d826b68d (diff) | |
Fix for #5
Diffstat (limited to 'src/parser/parser_stmt.c')
| -rw-r--r-- | src/parser/parser_stmt.c | 9 |
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) { |
