From f387698da4a6e79775dfe502f5c783f0dbb8af5e Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Thu, 14 Jul 2022 17:29:39 -0700 Subject: [PATCH] Adding support for spice files. Signed-off-by: Tim 'mithro' Ansell --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index b2ef240..0046522 100644 --- a/main.go +++ b/main.go @@ -307,6 +307,8 @@ func licenseHeader(path string, tmpl *template.Template, data licenseData) ([]by lic, err = executeTemplate(tmpl, data, "", "// ", "") case ".ml", ".mli", ".mll", ".mly": lic, err = executeTemplate(tmpl, data, "(**", " ", "*)") + case ".hspice", ".spice", ".cdl": + lic, err = executeTemplate(tmpl, data, "", "* ", "") default: // handle various cmake files if base == "cmakelists.txt" || strings.HasSuffix(base, ".cmake.in") || strings.HasSuffix(base, ".cmake") {