Skip to content

Commit 10104c5

Browse files
move semicolon check to forstatement
1 parent 842af9d commit 10104c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LuaParser/src/Parse/LuaParser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ void LuaParser::ForStatement() {
280280
}
281281
}
282282

283+
TestAndNext(';');
284+
283285
m.Complete(*this, LuaSyntaxNodeKind::ForStatement);
284286
}
285287

@@ -330,8 +332,6 @@ void LuaParser::ForBody() {
330332

331333
CheckAndNext(TK_END);
332334

333-
TestAndNext(';');
334-
335335
m.Complete(*this, LuaSyntaxNodeKind::ForBody);
336336
}
337337

0 commit comments

Comments
 (0)