mirror of
https://github.com/golang/go
synced 2024-11-22 05:04:40 -07:00
go/parser: fix build (temporarily disable recent change)
R=golang-dev CC=golang-dev https://golang.org/cl/5752059
This commit is contained in:
parent
67cbe9431f
commit
39b186da6c
@ -380,11 +380,13 @@ func (p *parser) seesComma(context string) bool {
|
||||
if p.tok == token.COMMA {
|
||||
return true
|
||||
}
|
||||
if p.tok == token.SEMICOLON && p.lit == "\n" {
|
||||
p.error(p.pos, "missing ',' before newline in "+context)
|
||||
return true // "insert" the comma and continue
|
||||
/*
|
||||
if p.tok == token.SEMICOLON && p.lit == "\n" {
|
||||
p.error(p.pos, "missing ',' before newline in "+context)
|
||||
return true // "insert" the comma and continue
|
||||
|
||||
}
|
||||
}
|
||||
*/
|
||||
return false
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user