1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v2: skip minus in string expr for now

This commit is contained in:
Joe Conigliaro 2020-02-29 15:56:16 +11:00
parent eb80accfee
commit 8e013d2174

View File

@ -1207,6 +1207,10 @@ fn (p mut Parser) string_expr() (ast.Expr,table.Type) {
if p.tok.kind == .colon {
p.next()
}
// ${num:-2d}
if p.tok.kind == .minus {
p.next()
}
// ${num:2d}
if p.tok.kind == .number {
p.next()