]> Cypherpunks repositories - gostls13.git/commitdiff
go/parser: fix build (temporarily disable recent change)
authorRobert Griesemer <gri@golang.org>
Tue, 6 Mar 2012 19:23:27 +0000 (11:23 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 6 Mar 2012 19:23:27 +0000 (11:23 -0800)
R=golang-dev
CC=golang-dev
https://golang.org/cl/5752059

src/pkg/go/parser/parser.go

index cc3923bbfcc79e818ac2e70e4f3375ddcc3fdde8..4a391454aedde5f43f17176039a6fd60df70bf52 100644 (file)
@@ -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
 }