fix: use withoutPosition in anon constructor

This commit is contained in:
Mario Carneiro 2023-05-17 02:47:18 -04:00 committed by Sebastian Ullrich
parent ebc32af2e6
commit df49512880

View file

@ -158,7 +158,7 @@ are turned into a new anonymous constructor application. For example,
`⟨a, b, c⟩ : α ×× γ)` is equivalent to `⟨a, ⟨b, c⟩⟩`.
-/
@[builtin_term_parser] def anonymousCtor := leading_parser
"⟨" >> sepBy termParser ", " >> "⟩"
"⟨" >> withoutPosition (withoutForbidden (sepBy termParser ", ")) >> "⟩"
def optIdent : Parser :=
optional (atomic (ident >> " : "))
def fromTerm := leading_parser