Skip to content

Commit 27929fe

Browse files
committed
Update syntax comment
1 parent cb6605c commit 27929fe

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
@@ -1548,7 +1548,8 @@ object Parsers {
15481548
case _ => None
15491549
}
15501550

1551-
/** CaptureRef ::= SimpleRef { `.` id } [`*` | `^`]
1551+
/** CaptureRef ::= { SimpleRef `.` } SimpleRef [`*`]
1552+
* | [ { SimpleRef `.` } SimpleRef `.` ] id `^`
15521553
*/
15531554
def captureRef(): Tree =
15541555
val ref = dotSelectors(simpleRef())

0 commit comments

Comments
 (0)