feat(frontends/lean/parser): allow parser to continue even if there are errors importing files
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
0d97fff280
commit
8afd433f34
1 changed files with 4 additions and 1 deletions
|
@ -1180,7 +1180,10 @@ bool parser::parse_commands() {
|
|||
scoped_set_distinguishing_pp_options set(get_distinguishing_pp_options());
|
||||
try {
|
||||
bool done = false;
|
||||
protected_call([&]() {
|
||||
parse_imports();
|
||||
},
|
||||
[&]() { sync_command(); });
|
||||
if (has_sorry(m_env)) {
|
||||
flycheck_warning wrn(regular_stream());
|
||||
display_warning_pos(pos());
|
||||
|
|
Loading…
Reference in a new issue