mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Switch cases do not require colon
This commit is contained in:
parent
d9abe7b712
commit
0e0de7b7fd
@ -88,9 +88,9 @@ Grammar::
|
||||
Expression =
|
||||
FunctionCall | Identifier | Literal
|
||||
Switch =
|
||||
'switch' Expression Case+ ( 'default' ':' Block )?
|
||||
'switch' Expression Case+ ( 'default' Block )?
|
||||
Case =
|
||||
'case' Literal ':' Block
|
||||
'case' Literal Block
|
||||
ForLoop =
|
||||
'for' Block Expression Block Block
|
||||
BreakContinue =
|
||||
|
Loading…
Reference in New Issue
Block a user