doc: stub for ellipsis notation (#5794)

This is certainly better than no documentation, though it's not obvious
to me whether the `_` insertion is greedy, lazy, or somewhere in
between.
This commit is contained in:
Eric Wieser 2024-10-22 02:33:46 +01:00 committed by GitHub
parent 07c09ee579
commit f752ce2db9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -819,6 +819,7 @@ We use them to implement `macro_rules` and `elab_rules`
def namedArgument := leading_parser (withAnonymousAntiquot := false)
atomic ("(" >> ident >> " := ") >> withoutPosition termParser >> ")"
/-- In a function application, `..` notation inserts zero or more `_` placeholders. -/
def ellipsis := leading_parser (withAnonymousAntiquot := false)
".." >> notFollowedBy (checkNoWsBefore >> ".") "`.` immediately after `..`"
def argument :=