Skip to content

Commit 0df0829

Browse files
committed
Add OCaml files to list of accepted extensions
1 parent 22550fa commit 0df0829

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

+2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ func addLicense(path string, fmode os.FileMode, tmpl *template.Template, data *c
156156
lic, err = prefix(tmpl, data, "<!--", " ", "-->")
157157
case ".php":
158158
lic, err = prefix(tmpl, data, "<?php", "// ", "?>")
159+
case ".ml", ".mli", ".mll", ".mly":
160+
lic, err = prefix(tmpl, data, "(**", " ", "*)")
159161
}
160162
if err != nil || lic == nil {
161163
return err

0 commit comments

Comments
 (0)