mirror of https://github.com/golang/go.git
update
Change-Id: I1e5f3283b3967c5737a8892b8ef9f9817d792d68
This commit is contained in:
parent
0d340b1c52
commit
310bd1537b
|
|
@ -2050,7 +2050,7 @@ func (p *parser) parseBranchStmt(tok token.Token) *ast.BranchStmt {
|
|||
|
||||
pos := p.expect(tok)
|
||||
var label *ast.Ident
|
||||
if (tok != token.FALLTHROUGH && p.tok == token.IDENT) || tok == token.GOTO {
|
||||
if tok == token.GOTO || ((tok == token.CONTINUE || tok == token.BREAK) && p.tok == token.IDENT) {
|
||||
label = p.parseIdent()
|
||||
}
|
||||
p.expectSemi()
|
||||
|
|
|
|||
Loading…
Reference in New Issue