chore: use new fun syntax in old pretty printer
This commit is contained in:
parent
7ece1172a3
commit
196435c73b
1 changed files with 3 additions and 2 deletions
|
|
@ -828,9 +828,10 @@ auto pretty_fn::pp_lambda(expr const & e) -> result {
|
|||
locals.push_back(p.second);
|
||||
b = p.first;
|
||||
}
|
||||
format r = m_unicode ? *g_lambda_n_fmt : *g_lambda_fmt;
|
||||
// format r = m_unicode ? *g_lambda_n_fmt : *g_lambda_fmt;
|
||||
format r = *g_lambda_fmt;
|
||||
r += pp_binders(locals);
|
||||
r += group(compose(format(","), nest(m_indent, compose(line(), pp_child(b, 0).fmt()))));
|
||||
r += group(compose(format(" =>"), nest(m_indent, compose(line(), pp_child(b, 0).fmt()))));
|
||||
return result(0, r);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue