Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Lean/Parser/Term.lean
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ 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)
".." >> notFollowedBy "." "`.` immediately after `..`"
".." >> notFollowedBy (checkNoWsBefore >> ".") "`.` immediately after `..`"
def argument :=
checkWsBefore "expected space" >>
checkColGt "expected to be indented" >>
Expand Down
10 changes: 10 additions & 0 deletions tests/lean/run/4768.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/-!
Test that `..` tokens do not break nearby `.`s.

Note that this tests specifically for issues with `.` that are not present with `·`.
-/

example : True ∧ True := by
constructor
refine trivial ..
. trivial -- this has to be . not · for this test to be useful