com php-langspec: Don't require statement after label: spec/11-statements.md spec/19-grammar.md
[email protected] (Nikita Popov) Tue, 19 Sep 2017 06:51:25 +0000
| Newsgroups | php.standards.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: e3eb18b757b24b0b1f97dc9bb9a24cf12697eb99=0AAuthor: Nikita Pop= ov <[email protected]> Tue, 19 Sep 2017 08:51:25 +0200=0AParents: 687= ecf0dbc2397b79a9b5a39be05105b9f42ac8a=0ABranches: master=0A=0ALink: = http://git.php.net/?p=3Dphp-langspec.git;a=3Dcommitdiff;h=3De3eb18b757b24b0= b1f97dc9bb9a24cf12697eb99=0A=0ALog:=0ADon't require statement after label= =0A=0AFixes #190.=0A=0ABugs:=0Ahttps://bugs.php.net/190=0A=0AChanged paths:= =0A M spec/11-statements.md=0A M spec/19-grammar.md=0A=0A=0ADiff:=0Adif= f --git a/spec/11-statements.md b/spec/11-statements.md=0Aindex 4a5a0fc..42= 7c74b 100644=0A--- a/spec/11-statements.md=0A+++ b/spec/11-statements.md=0A= @@ -98,25 +98,22 @@ while (condition)=0A =0A <!-- GRAMMAR=0A named-label-st= atement:=0A- name ';' statement=0A+ name ':'=0A -->=0A =0A <pre>=0A <i id= =3D"grammar-named-label-statement">named-label-statement:</i>=0A- <i><a h= ref=3D"09-lexical-structure.md#grammar-name">name</a></i> ; <i><a href= =3D"#grammar-statement">statement</a></i>=0A+ <i><a href=3D"09-lexical-st= ructure.md#grammar-name">name</a></i> :=0A </pre>=0A =0A **Constraints**= =0A =0A-A named label can be used as the target of a [`goto` statement](#th= e-goto-statement).=0A-=0A Named labels must be unique within a function.=0A= =0A **Semantics**=0A =0A-Any statement may be preceded by a token sequence= that declares a name=0A-as a label name. The presence of a label does not = alter the =EF=AC=82ow of=0A-execution.=0A+A named label can be used as the = target of a [`goto` statement](#the-goto-statement).=0A+The presence of a l= abel does not by itself alter the flow of execution.=0A =0A ## Expression S= tatements=0A =0Adiff --git a/spec/19-grammar.md b/spec/19-grammar.md=0Ainde= x 7d4738a..32661cb 100644=0A--- a/spec/19-grammar.md=0A+++ b/spec/19-gramma= r.md=0A@@ -756,7 +756,7 @@ The grammar notation is described in [Grammars s= ection](09-lexical-structure.md#=0A <i><a href=3D"#grammar-statement-lis= t">statement-list</a></i> <i><a href=3D"#grammar-statement">statement</a>= </i>=0A =0A <i id=3D"grammar-named-label-statement">named-label-statement:<= /i>=0A- <i><a href=3D"#grammar-name">name</a></i> ; <i><a href=3D"#gr= ammar-statement">statement</a></i>=0A+ <i><a href=3D"#grammar-name">name<= /a></i> :=0A =0A <i id=3D"grammar-expression-statement">expression-statem= ent:</i>=0A <i><a href=3D"#grammar-expression">expression</a></i><sub>op= t</sub> ;=0A