mirror of
https://github.com/golang/go
synced 2024-11-18 14:44:41 -07:00
cmd/goyacc: add header to generated go output file
Add "// Code generated by goyacc. DO NOT EDIT." to the top of the generated go output file. Fixes golang/go#26158 Change-Id: I5dd66af9cd8ccccd27440886c55cd604686472e3 Reviewed-on: https://go-review.googlesource.com/122095 Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
parent
75d2ffb453
commit
16f8f9bb72
@ -387,6 +387,8 @@ func setup() {
|
||||
yaccpar = strings.Replace(yaccpartext, "$$", prefix, -1)
|
||||
openup()
|
||||
|
||||
fmt.Fprintf(ftable, "// Code generated by goyacc. DO NOT EDIT.")
|
||||
|
||||
defin(0, "$end")
|
||||
extval = PRIVATE // tokens start in unicode 'private use'
|
||||
defin(0, "error")
|
||||
|
Loading…
Reference in New Issue
Block a user