Skip to content

Commit

Permalink
Add support for .lr and .lr.go files (#85)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Zunker <christian.zunker@gmail.com>
  • Loading branch information
czunker committed Nov 13, 2023
1 parent 9f8cdf2 commit 9103d86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addlicense/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func licenseHeader(path string, tmpl *template.Template, data LicenseData) ([]by
lic, err = executeTemplate(tmpl, data, "/*", " * ", " */")
case ".js", ".mjs", ".cjs", ".jsx", ".tsx", ".css", ".scss", ".sass", ".ts":
lic, err = executeTemplate(tmpl, data, "/**", " * ", " */")
case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".m", ".mm", ".proto", ".rs", ".swift", ".dart", ".groovy", ".v", ".sv":
case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".m", ".mm", ".proto", ".rs", ".swift", ".dart", ".groovy", ".v", ".sv", ".lr":
lic, err = executeTemplate(tmpl, data, "", "// ", "")
case ".py", ".sh", ".bash", ".zsh", ".yaml", ".yml", ".dockerfile", "dockerfile", ".rb", "gemfile", ".ru", ".tcl", ".hcl", ".tf", ".tfvars", ".nomad", ".bzl", ".pl", ".pp", ".ps1", ".psd1", ".psm1":
lic, err = executeTemplate(tmpl, data, "", "# ", "")
Expand Down
2 changes: 1 addition & 1 deletion addlicense/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func TestLicenseHeader(t *testing.T) {
},
{
[]string{"f.cc", "f.cpp", "f.cs", "f.go", "f.hh", "f.hpp", "f.m", "f.mm", "f.proto",
"f.rs", "f.swift", "f.dart", "f.groovy", "f.v", "f.sv", "f.php"},
"f.rs", "f.swift", "f.dart", "f.groovy", "f.v", "f.sv", "f.php", "f.lr"},
"// HYS\n\n",
},
{
Expand Down

0 comments on commit 9103d86

Please sign in to comment.