Commit 62491ff7 authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

cmd/yacc: fix copying action code when line comment is disabled

Fixes #12601.

Change-Id: I0be69ffe9ba19934aaef1651845c725708db77de
Reviewed-on: https://go-review.googlesource.com/14546Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent f12b6208
......@@ -1284,8 +1284,9 @@ func dumpprod(curprod []int, max int) {
func cpyact(curprod []int, max int) {
if !lflag {
fmt.Fprintf(fcode, "\n\t\t//line %v:%v\n\t\t", infile, lineno)
fmt.Fprintf(fcode, "\n\t\t//line %v:%v", infile, lineno)
}
fmt.Fprint(fcode, "\n\t\t")
lno := lineno
brac := 0
......
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