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:
parent
c337bee05c
commit
0d05b81a69
1 changed files with 4 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue