Commit a6400dd4 authored by Robert Griesemer's avatar Robert Griesemer

more fine-tuning of ;'s

R=r
OCL=16274
CL=16274
parent 6349d38e
...@@ -49,10 +49,10 @@ func (P *Printer) OpenScope(paren string) { ...@@ -49,10 +49,10 @@ func (P *Printer) OpenScope(paren string) {
func (P *Printer) CloseScope(paren string) { func (P *Printer) CloseScope(paren string) {
P.level--;
P.indent--; P.indent--;
P.newl = true; P.semi = false;
P.String(paren); P.String(paren);
P.level--;
P.semi, P.newl = false, true; P.semi, P.newl = false, true;
} }
...@@ -221,6 +221,7 @@ func (P *Printer) DoFuncDecl(x *AST.FuncDecl) { ...@@ -221,6 +221,7 @@ func (P *Printer) DoFuncDecl(x *AST.FuncDecl) {
P.DoIdent(x.ident); P.DoIdent(x.ident);
P.DoFunctionType(x.typ); P.DoFunctionType(x.typ);
if x.body != nil { if x.body != nil {
P.String(" ");
P.DoBlock(x.body); P.DoBlock(x.body);
} else { } else {
P.String(" ;"); P.String(" ;");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment