1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

simplify vfmt

This commit is contained in:
Alexander Medvednikov
2019-11-11 08:58:50 +03:00
parent d9b29bfb4e
commit e6775913aa
5 changed files with 14 additions and 15 deletions

View File

@ -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'"
}