mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
simplify vfmt
This commit is contained in:
@ -290,6 +290,9 @@ fn (t Token) str() string {
|
||||
return t.lit
|
||||
|
||||
}
|
||||
if t.tok == .chartoken {
|
||||
return '`$t.lit`'
|
||||
}
|
||||
if t.tok == .str {
|
||||
return "'$t.lit'"
|
||||
}
|
||||
|
Reference in New Issue
Block a user