From 310bd1537b7a36758f3fbf8db476fa68e1a11599 Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Sun, 22 Dec 2024 17:53:13 +0100 Subject: [PATCH] update Change-Id: I1e5f3283b3967c5737a8892b8ef9f9817d792d68 --- src/go/parser/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/parser/parser.go b/src/go/parser/parser.go index 1207b5f24b98e3..6061c10a31cfd4 100644 --- a/src/go/parser/parser.go +++ b/src/go/parser/parser.go @@ -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()