Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Change-Id: I1e5f3283b3967c5737a8892b8ef9f9817d792d68
  • Loading branch information
mateusz834 committed Dec 22, 2024
1 parent 1356317 commit 91e1236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/go/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 91e1236

Please sign in to comment.