chore: where struct instance parser

The parser was modified to fix issue https://github.com/leanprover/lean4/issues/753

cc @tydeu
This commit is contained in:
Leonardo de Moura 2021-12-12 08:22:31 -08:00
parent 56bae17924
commit 99bd215dcb

View file

@ -30,7 +30,7 @@ syntax packageDeclTyped :=
Term.typeSpec declValSimple
syntax packageDeclSpec :=
ident (Term.whereDecls <|> packageDeclTyped <|> packageDeclWithBinders)?
ident (Command.whereStructInst <|> packageDeclTyped <|> packageDeclWithBinders)?
scoped syntax (name := packageDecl)
(docComment)? "package " packageDeclSpec : command