facts: fix detection of goyacc generated files
The "Code generated by" comment includes the optional arguments passed
to goyacc.
Closes:
Closes: [via git-merge-pr]
@@ -55,6 +55,10 @@ func isGenerated(path string) (Generator, bool) {
if strings.HasPrefix(text, `by "stringer `) {
return Stringer, true
}
+ if strings.HasPrefix(text, `by goyacc `) {
+ return Goyacc, true
+ }
+
return Unknown, true
}
if bytes.Equal(s, oldCgo) {
