diff --git a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala index a123291b2939..afd3b6d4bf20 100644 --- a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala +++ b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala @@ -1548,7 +1548,8 @@ object Parsers { case _ => None } - /** CaptureRef ::= SimpleRef { `.` id } [`*` | `^`] + /** CaptureRef ::= { SimpleRef `.` } SimpleRef [`*`] + * | [ { SimpleRef `.` } SimpleRef `.` ] id `^` */ def captureRef(): Tree = val ref = dotSelectors(simpleRef())