feat(frontends/lean/parser): remove unnecessary restriction

This commit is contained in:
Leonardo de Moura 2016-08-07 11:40:39 -07:00
parent 1e6b3614ab
commit b9c62af37d

View file

@ -1792,9 +1792,6 @@ expr parser::patexpr_to_pattern(expr const & pat_or_expr, bool skip_main_fn, buf
}
expr parser::parse_pattern_or_expr(unsigned rbp) {
if (m_in_quote) {
throw parser_error("patterns cannot occur inside of quoted terms", pos());
}
all_id_local_scope scope(*this);
return parse_expr(rbp);
}