mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
cmd/goyacc: include arguments in DO NOT EDIT marker
A follow-on to CL122095, which normalized the marker but did not include the arguments. Output now looks like this: // Code generated by goyacc -o expr.go -p expr expr.y. DO NOT EDIT. Change-Id: I20577ea90943516f45478d778353b5bd2f485dfa Reviewed-on: https://go-review.googlesource.com/122540 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
827133af57
commit
e2be0f7276
@ -387,7 +387,7 @@ func setup() {
|
||||
yaccpar = strings.Replace(yaccpartext, "$$", prefix, -1)
|
||||
openup()
|
||||
|
||||
fmt.Fprintf(ftable, "// Code generated by goyacc. DO NOT EDIT.")
|
||||
fmt.Fprintf(ftable, "// Code generated by goyacc %s. DO NOT EDIT.", strings.Join(os.Args[1:], " "))
|
||||
|
||||
defin(0, "$end")
|
||||
extval = PRIVATE // tokens start in unicode 'private use'
|
||||
|
Loading…
x
Reference in New Issue
Block a user