mirror of https://github.com/golang/go.git
- fixed typo in parser.go
- re-enabled bug118.go for pretty R=r OCL=18604 CL=18604
This commit is contained in:
parent
553c98dca4
commit
b3c983f3a0
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue