Require at least one case in switch

This commit is contained in:
chriseth
2017-11-22 03:33:06 +00:00
committed by Alex Beregszaszi
parent e9b08e029e
commit d9abe7b712
+1 -1
View File
@@ -88,7 +88,7 @@ Grammar::
Expression =
FunctionCall | Identifier | Literal
Switch =
'switch' Expression Case* ( 'default' ':' Block )?
'switch' Expression Case+ ( 'default' ':' Block )?
Case =
'case' Literal ':' Block
ForLoop =