Add %q for runes in fmt

This commit is contained in:
gingerBill committed 2020-11-18 23:40:54 +00:00
1 parent a39921aa6a
commit fef5172278
2 files changed
+18

No files matched your search

+2
View File
@@ -776,6 +776,8 @@ fmt_rune :: proc(fi: ^Info, r: rune, verb: rune) {
switch verb {
case 'c', 'r', 'v':
strings.write_rune(fi.buf, r);
case 'q':
strings.write_quoted_rune(fi.buf, r);
case:
fmt_int(fi, u64(r), false, 32, verb);
}