mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
more vfmt fixes
This commit is contained in:
@ -286,6 +286,10 @@ fn (t []TokenKind) contains(val TokenKind) bool {
|
||||
}
|
||||
|
||||
fn (t Token) str() string {
|
||||
if t.tok == .number {
|
||||
return t.lit
|
||||
|
||||
}
|
||||
if t.tok == .str {
|
||||
return "'$t.lit'"
|
||||
}
|
||||
|
Reference in New Issue
Block a user