]> Cypherpunks repositories - gostls13.git/commitdiff
- fixed typo in parser.go
authorRobert Griesemer <gri@golang.org>
Thu, 6 Nov 2008 00:05:36 +0000 (16:05 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 6 Nov 2008 00:05:36 +0000 (16:05 -0800)
- re-enabled bug118.go for pretty

R=r
OCL=18604
CL=18604

usr/gri/pretty/parser.go
usr/gri/pretty/test.sh

index f9bb22a10fbdce4574b6f41e756851cc2c8da5d7..d9e7c921ee82bd8ce53dfed07d3e8906a7597cb9 100644 (file)
@@ -1181,7 +1181,7 @@ func (P *Parser) ParseSwitchStat() *AST.Stat {
 func (P *Parser) ParseCommCase() *AST.Stat {
        P.Trace("CommCase");
 
-       s := AST.NewStat(P.pos, Scanner.CASE);
+       s := AST.NewStat(P.pos, P.tok);
        if P.tok == Scanner.CASE {
                P.Next();
                x := P.ParseExpression(1);
index 7e4de44a4f233afc91b4ec6ee0948aa9057ac184..141193cf2a589a9d7260a713e4616456bc1964a0 100755 (executable)
@@ -22,7 +22,7 @@ apply1() {
        #echo $1 $2
        case `basename $F` in
        selftest1.go | func3.go | bug014.go | bug029.go | bug032.go | bug050.go | \
-       bug068.go | bug088.go | bug083.go | bug106.go | bug118.go ) ;;  # skip - files contain syntax errors
+       bug068.go | bug088.go | bug083.go | bug106.go ) ;;  # skip - files contain syntax errors
        * ) $1 $2; count ;;
        esac
 }