v2: skip minus in string expr for now
parent
eb80accfee
commit
8e013d2174
|
@ -1207,6 +1207,10 @@ fn (p mut Parser) string_expr() (ast.Expr,table.Type) {
|
||||||
if p.tok.kind == .colon {
|
if p.tok.kind == .colon {
|
||||||
p.next()
|
p.next()
|
||||||
}
|
}
|
||||||
|
// ${num:-2d}
|
||||||
|
if p.tok.kind == .minus {
|
||||||
|
p.next()
|
||||||
|
}
|
||||||
// ${num:2d}
|
// ${num:2d}
|
||||||
if p.tok.kind == .number {
|
if p.tok.kind == .number {
|
||||||
p.next()
|
p.next()
|
||||||
|
|
Loading…
Reference in New Issue