Skip to content

Commit 820200c

Browse files
committed
repeat requires while or until
1 parent df68299 commit 820200c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

STD.pm6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,9 @@ grammar P6 is STD {
15001500
| $<wu>=['while'|'until']<.keyspace>
15011501
<xblock>
15021502
| <pblock>
1503-
$<wu>=['while'|'until'][<.keyspace>||<.panic: "Whitespace required after keyword">] <EXPR>
1503+
[$<wu>=['while'|'until'] || <.panic: '"repeat" is missing its "while" or "until"'> ]
1504+
[<.keyspace> || <.panic: "Whitespace required after keyword">]
1505+
<EXPR>
15041506
]
15051507
}
15061508

0 commit comments

Comments
 (0)