1
0
mirror of https://github.com/golang/go synced 2024-09-30 14:28:33 -06:00

cmd/goyacc: put //line annotations on the first column.

This appears to have broken since go1.11, and "go doc compile" and
https://golang.org/issue/24183 documents this new convention (point
2)

Change-Id: I6a4bc0fc51a18c17ac9a72a67d9a8eb4c879e0f9
Reviewed-on: https://go-review.googlesource.com/137515
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Jamie Wilkinson 2018-09-26 09:48:44 +10:00 committed by Ian Lance Taylor
parent d5fdb01c2f
commit 9eb9690e39

View File

@ -1272,7 +1272,7 @@ l1:
func cpyact(curprod []int, max int) {
if !lflag {
fmt.Fprintf(fcode, "\n\t\t//line %v:%v", infile, lineno)
fmt.Fprintf(fcode, "\n//line %v:%v", infile, lineno)
}
fmt.Fprint(fcode, "\n\t\t")