fix(frontends/lean/pp): char literals

This commit is contained in:
Leonardo de Moura 2016-11-23 11:58:11 -08:00
parent 01bc4dfcd2
commit ffe9b3c5d6

View file

@ -1202,6 +1202,7 @@ auto pretty_fn::pp_notation_child(expr const & e, unsigned lbp, unsigned rbp) ->
}
if (m_strings) {
if (auto r = to_string(e)) return pp_string_literal(*r);
if (auto r = to_char(e)) return pp_char_literal(*r);
}
expr const & f = app_fn(e);
if (is_implicit(f)) {
@ -1579,6 +1580,7 @@ auto pretty_fn::pp(expr const & e, bool ignore_hide) -> result {
}
if (m_strings) {
if (auto r = to_string(e)) return pp_string_literal(*r);
if (auto r = to_char(e)) return pp_char_literal(*r);
}
if (auto t = is_proof(e)) {
return pp_proof_type(*t);