v2: skip minus in string expr for now

pull/3880/head
Joe Conigliaro 2020-02-29 15:56:16 +11:00
parent eb80accfee
commit 8e013d2174
1 changed files with 4 additions and 0 deletions

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()