fix(frontends/lean): squiggle position for unary begin-end block
This commit is contained in:
parent
e22eb3543c
commit
a2ef835809
1 changed files with 5 additions and 0 deletions
|
@ -182,6 +182,11 @@ static expr parse_begin_end_core(parser & p, pos_info const & pos) {
|
|||
tacs.push_back(tac);
|
||||
}
|
||||
expr r = tacs[0];
|
||||
if (tacs.size() == 1) {
|
||||
// Hack: for having a uniform squiggle placement for unsolved goals.
|
||||
// That is, the result is always of the form and_then(...).
|
||||
r = p.mk_app({get_and_then_tac_fn(), r, mk_begin_end_element_annotation(get_id_tac_fn())}, end_pos);
|
||||
}
|
||||
for (unsigned i = 1; i < tacs.size(); i++) {
|
||||
r = p.mk_app({get_and_then_tac_fn(), r, tacs[i]}, end_pos);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue