mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix bug not printing percentages
This commit is contained in:
parent
916b13b286
commit
48c06df5f5
@ -2222,6 +2222,7 @@ fn (p mut Parser) string_expr() {
|
|||||||
mut format := '"'
|
mut format := '"'
|
||||||
for p.tok == .strtoken {
|
for p.tok == .strtoken {
|
||||||
// Add the string between %d's
|
// Add the string between %d's
|
||||||
|
p.lit = p.lit.replace('%', '%%')
|
||||||
format += format_str(p.lit)
|
format += format_str(p.lit)
|
||||||
p.next()// skip $
|
p.next()// skip $
|
||||||
if p.tok != .dollar {
|
if p.tok != .dollar {
|
||||||
|
Loading…
Reference in New Issue
Block a user