fix(frontends/lean/module_parser): make the #exit command end at the end of the file
Fixes #1553.
This commit is contained in:
parent
e6a62b8030
commit
3e2e9ed98a
1 changed files with 1 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ task<module_parser_result> module_parser::parse_next_command_like(optional<std::
|
|||
done = true;
|
||||
}
|
||||
auto end_pos = self->m_parser.pos();
|
||||
if (done) end_pos = self->m_end_pos;
|
||||
lean_assert(end_pos >= begin_pos);
|
||||
|
||||
module_parser_result res;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue