Change-Id: I1e5f3283b3967c5737a8892b8ef9f9817d792d68
This commit is contained in:
Mateusz Poliwczak 2024-12-22 17:53:13 +01:00
parent 0d340b1c52
commit 310bd1537b
1 changed files with 1 additions and 1 deletions

View File

@ -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()