fix: disallow . immediately after ..

Rejects the following weird example
```
```
which was being parsed as
```
```
This commit is contained in:
Leonardo de Moura 2022-10-26 07:13:40 -07:00
parent d7e732e886
commit e369c3beb6
3 changed files with 4 additions and 1 deletions

View file

@ -547,7 +547,8 @@ We use them to implement `macro_rules` and `elab_rules`
def namedArgument := leading_parser (withAnonymousAntiquot := false)
atomic ("(" >> ident >> " := ") >> withoutPosition termParser >> ")"
def ellipsis := leading_parser (withAnonymousAntiquot := false) ".."
def ellipsis := leading_parser (withAnonymousAntiquot := false)
".." >> notFollowedBy "." "`.` immediately after `..`"
def argument :=
checkWsBefore "expected space" >>
checkColGt "expected to be indented" >>

View file

@ -0,0 +1 @@
#check Nat.add ...succ

View file

@ -0,0 +1 @@
ellipsisProjIssue.lean:1:17: error: unexpected `.` immediately after `..`