1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

Fixed reformat removing errors in switch block

This commit is contained in:
Brian Fiete 2020-10-11 07:49:54 -07:00
parent c337bee05c
commit 0d05b81a69

View file

@ -3306,7 +3306,9 @@ BfSwitchStatement* BfReducer::CreateSwitchStatement(BfTokenNode* tokenNode)
((token != BfToken_Case) && (token != BfToken_When) && (token != BfToken_Default)))
{
Fail("Expected 'case'", child);
return switchStatement;
AddErrorNode(child);
isDone = !mVisitorPos.MoveNext();
continue;
}
//TODO: This error was getting annoying... Put back?