From 9eb9690e392a79b547be16fa2fa66f1710ed3035 Mon Sep 17 00:00:00 2001 From: Jamie Wilkinson Date: Wed, 26 Sep 2018 09:48:44 +1000 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- cmd/goyacc/yacc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/goyacc/yacc.go b/cmd/goyacc/yacc.go index 592e551c..a637386f 100644 --- a/cmd/goyacc/yacc.go +++ b/cmd/goyacc/yacc.go @@ -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")