File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ else // this else does go with the outer if
314
314
<!-- GRAMMAR
315
315
switch-statement:
316
316
'switch' '(' expression ')' '{' case-statements? '}'
317
- 'switch' '(' expression ')' ':' case-statements? 'endswitch;'
317
+ 'switch' '(' expression ')' ':' case-statements? 'endswitch' ' ;'
318
318
319
319
case-statements:
320
320
case-statement case-statements?
@@ -334,7 +334,7 @@ case-default-label-terminator:
334
334
<pre >
335
335
<i id =" grammar-switch-statement " >switch-statement:</i >
336
336
switch ( <i ><a href =" 10-expressions.md#grammar-expression " >expression</a ></i > ) { <i ><a href =" #grammar-case-statements " >case-statements</a ></i ><sub >opt</sub > }
337
- switch ( <i ><a href =" 10-expressions.md#grammar-expression " >expression</a ></i > ) : <i ><a href =" #grammar-case-statements " >case-statements</a ></i ><sub >opt</sub > endswitch;
337
+ switch ( <i ><a href =" 10-expressions.md#grammar-expression " >expression</a ></i > ) : <i ><a href =" #grammar-case-statements " >case-statements</a ></i ><sub >opt</sub > endswitch ;
338
338
339
339
<i id =" grammar-case-statements " >case-statements:</i >
340
340
<i ><a href =" #grammar-case-statement " >case-statement</a ></i > <i ><a href =" #grammar-case-statements " >case-statements</a ></i ><sub >opt</sub >
Original file line number Diff line number Diff line change @@ -783,7 +783,7 @@ The grammar notation is described in [Grammars section](09-lexical-structure.md#
783
783
784
784
<i id =" grammar-switch-statement " >switch-statement:</i >
785
785
switch ( <i ><a href =" #grammar-expression " >expression</a ></i > ) { <i ><a href =" #grammar-case-statements " >case-statements</a ></i ><sub >opt</sub > }
786
- switch ( <i ><a href =" #grammar-expression " >expression</a ></i > ) : <i ><a href =" #grammar-case-statements " >case-statements</a ></i ><sub >opt</sub > endswitch;
786
+ switch ( <i ><a href =" #grammar-expression " >expression</a ></i > ) : <i ><a href =" #grammar-case-statements " >case-statements</a ></i ><sub >opt</sub > endswitch ;
787
787
788
788
<i id =" grammar-case-statements " >case-statements:</i >
789
789
<i ><a href =" #grammar-case-statement " >case-statement</a ></i > <i ><a href =" #grammar-case-statements " >case-statements</a ></i ><sub >opt</sub >
You can’t perform that action at this time.
0 commit comments