Add OCaml files to list of accepted extensions

This commit is contained in:
Alejandro Lopez
2019-09-06 11:56:11 -04:00
parent 22550fa7c1
commit 0df0829f35

View File

@@ -156,6 +156,8 @@ func addLicense(path string, fmode os.FileMode, tmpl *template.Template, data *c
lic, err = prefix(tmpl, data, "<!--", " ", "-->")
case ".php":
lic, err = prefix(tmpl, data, "<?php", "// ", "?>")
case ".ml", ".mli", ".mll", ".mly":
lic, err = prefix(tmpl, data, "(**", " ", "*)")
}
if err != nil || lic == nil {
return err