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:
parent
eb80accfee
commit
8e013d2174
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user