Skip to content

Commit

Permalink
Add OCaml files to list of accepted extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ale64bit committed Sep 6, 2019
1 parent 22550fa commit 0df0829
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0df0829

Please sign in to comment.