feat: support graphviz file extension

This commit is contained in:
Tomer Aberbach
2020-07-04 00:10:47 -04:00
parent df58acafd6
commit c4cb7c1b63
3 changed files with 35 additions and 1 deletions

View File

@@ -205,7 +205,7 @@ func licenseHeader(path string, tmpl *template.Template, data *copyrightData) ([
switch fileExtension(path) {
default:
return nil, nil
case ".c", ".h":
case ".c", ".h", ".gv":
lic, err = prefix(tmpl, data, "/*", " * ", " */")
case ".js", ".mjs", ".cjs", ".jsx", ".tsx", ".css", ".tf", ".ts":
lic, err = prefix(tmpl, data, "/**", " * ", " */")