diff options
Diffstat (limited to 'src/fmt.cff')
| -rw-r--r-- | src/fmt.cff | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fmt.cff b/src/fmt.cff index ad28bbd..8212593 100644 --- a/src/fmt.cff +++ b/src/fmt.cff @@ -47,10 +47,15 @@ extern fn vpfmt(proc *fn(u8, *void) void, parg *void, fmt *const u8, ap va_list) p('\''); case :null; ps("#null"); - case :ident, :macident, :gensym, :label; + case :ident, :macident, :label; if quote { p('`'); } ps(tok.u.ident); if quote { p('\''); } + case :gensym; + if quote { p('`'); } + p('$'); + ps(tok.u.ident); + if quote { p('\''); } case :type; pfmt(proc, parg, "%t", tok.ty); case else |