Add %q for runes in fmt

This commit is contained in:
gingerBill
2020-11-18 23:40:54 +00:00
parent a39921aa6a
commit fef5172278
2 changed files with 18 additions and 0 deletions
+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);
}