Skip to content

Commit 5bc20ac

Browse files
noti0na1odersky
authored andcommitted
Update syntax comment
1 parent d930adf commit 5bc20ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,8 @@ object Parsers {
15591559
case _ => None
15601560
}
15611561

1562-
/** CaptureRef ::= SimpleRef { `.` id } [`*` | `^`]
1562+
/** CaptureRef ::= { SimpleRef `.` } SimpleRef [`*`]
1563+
* | [ { SimpleRef `.` } SimpleRef `.` ] id `^`
15631564
*/
15641565
def captureRef(): Tree =
15651566
val ref = dotSelectors(simpleRef())

0 commit comments

Comments
 (0)