diff --git a/autogen.sh b/autogen.sh index 30756e8..e2801d8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -356,7 +356,7 @@ function autogenForFile() { printFileCommentTemplate "%" ;; - *.hs) + *.hs | *.lua) printLicenseNonHashComment "--" printFileCommentTemplate "--" ;; diff --git a/tests/testdata/lua-separator.err b/tests/testdata/lua-separator.err new file mode 100644 index 0000000..e69de29 diff --git a/tests/testdata/lua-separator.in b/tests/testdata/lua-separator.in new file mode 100644 index 0000000..f8352cc --- /dev/null +++ b/tests/testdata/lua-separator.in @@ -0,0 +1 @@ +--separator file.lua diff --git a/tests/testdata/lua-separator.out b/tests/testdata/lua-separator.out new file mode 100644 index 0000000..e689d1c --- /dev/null +++ b/tests/testdata/lua-separator.out @@ -0,0 +1,18 @@ +-- Copyright 2014 Google LLC +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-------------------------------------------------------------------------------- +-- +-- TODO: High-level file comment. + diff --git a/tests/testdata/lua.err b/tests/testdata/lua.err new file mode 100644 index 0000000..e69de29 diff --git a/tests/testdata/lua.in b/tests/testdata/lua.in new file mode 100644 index 0000000..a5a219a --- /dev/null +++ b/tests/testdata/lua.in @@ -0,0 +1 @@ +file.lua diff --git a/tests/testdata/lua.out b/tests/testdata/lua.out new file mode 100644 index 0000000..ed3031a --- /dev/null +++ b/tests/testdata/lua.out @@ -0,0 +1,16 @@ +-- Copyright 2014 Google LLC +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +-- TODO: High-level file comment. +