fix(frontends/lean): include position information

This commit is contained in:
Leonardo de Moura 2014-11-09 11:43:44 -08:00
parent 76fb6893e1
commit 6362610411

View file

@ -346,7 +346,7 @@ static environment definition_cmd_core(parser & p, def_cmd_kind kind, bool is_op
type = p.parse_expr();
if (!is_definition && !p.curr_is_token(get_assign_tk())) {
check_end_of_theorem(p);
value = mk_expr_placeholder();
value = p.save_pos(mk_expr_placeholder(), pos);
} else {
p.check_token_next(get_assign_tk(), "invalid declaration, ':=' expected");
value = p.save_pos(p.parse_expr(), pos);