From 48c06df5f5fe83fe34e23cb0629212cc46bd9aef Mon Sep 17 00:00:00 2001 From: Henrixounez Date: Mon, 15 Jul 2019 14:05:11 +0200 Subject: [PATCH] parser: fix bug not printing percentages --- compiler/parser.v | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/parser.v b/compiler/parser.v index 3e75e4988b..3fbb257f67 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -2222,6 +2222,7 @@ fn (p mut Parser) string_expr() { mut format := '"' for p.tok == .strtoken { // Add the string between %d's + p.lit = p.lit.replace('%', '%%') format += format_str(p.lit) p.next()// skip $ if p.tok != .dollar {