Skip to content

Commit de96c6a

Browse files
committed
remove requirement for sleep delay expression
1 parent 25f4801 commit de96c6a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

DMCompiler/Compiler/DM/DMParser.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,6 @@ private DMASTProcStatement Set() {
11341134
bool hasParenthesis = Check(TokenType.DM_LeftParenthesis);
11351135
Whitespace();
11361136
DMASTExpression? delay = Expression();
1137-
RequireExpression(ref delay, "Expected delay to sleep for");
11381137
if (hasParenthesis) ConsumeRightParenthesis();
11391138

11401139
return new DMASTProcStatementSleep(loc, delay ?? new DMASTConstantInteger(loc, 0));

0 commit comments

Comments
 (0)