Skip to content

Commit

Permalink
Allow also empty statements in non default cases
Browse files Browse the repository at this point in the history
  • Loading branch information
arturjpv committed Feb 11, 2025
1 parent 37848af commit a5b954e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions UnrealAngelscriptParser/Grammar/UnrealAngelscriptParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,10 @@ statement:
);

labeledStatement:
((Identifier | Case constantExpression) Colon statement)
| Default Colon statement?;
(Identifier
| Case constantExpression
| Default
) Colon statement?;

expressionStatement: expression? Semi;

Expand Down

0 comments on commit a5b954e

Please sign in to comment.