fix(frontends/lean/structure_cmd): error parsing structure without parameters followed by ': Type'
This commit is contained in:
parent
defc2478b5
commit
d6dc624ca8
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ struct structure_cmd_fn {
|
||||||
|
|
||||||
/** \brief Parse structure parameters */
|
/** \brief Parse structure parameters */
|
||||||
void parse_params() {
|
void parse_params() {
|
||||||
if (!m_p.curr_is_token(get_extends_tk()) && !m_p.curr_is_token(get_assign_tk()))
|
if (!m_p.curr_is_token(get_extends_tk()) && !m_p.curr_is_token(get_assign_tk()) && !m_p.curr_is_token(get_colon_tk()))
|
||||||
m_p.parse_binders(m_params);
|
m_p.parse_binders(m_params);
|
||||||
for (expr const & l : m_params)
|
for (expr const & l : m_params)
|
||||||
m_p.add_local(l);
|
m_p.add_local(l);
|
||||||
|
|
Loading…
Reference in a new issue