From aeb1aff636bd3e0e94d5c980892a827d321e5a6c Mon Sep 17 00:00:00 2001 From: Cel Andromeda Skeggs Date: Mon, 18 Aug 2025 18:41:44 +0000 Subject: [PATCH] Add support for fpp file extension This is for NASA's F Prime Prime modeling language. --- main.go | 1 + testdata/expected/file.fpp | 17 +++++++++++++++++ testdata/initial/file.fpp | 3 +++ 3 files changed, 21 insertions(+) create mode 100644 testdata/expected/file.fpp create mode 100644 testdata/initial/file.fpp diff --git a/main.go b/main.go index 9e42e8a..9bf601f 100644 --- a/main.go +++ b/main.go @@ -325,6 +325,7 @@ func licenseHeader(path string, tmpl *template.Template, data licenseData) ([]by ".bzl", ".bazel", "build", ".build", ".dockerfile", "dockerfile", ".ex", ".exs", + ".fpp", ".graphql", ".jl", ".nix", diff --git a/testdata/expected/file.fpp b/testdata/expected/file.fpp new file mode 100644 index 0000000..60633d0 --- /dev/null +++ b/testdata/expected/file.fpp @@ -0,0 +1,17 @@ +# Copyright 2018 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. + +module Example { + constant Message = "Hello World" +} diff --git a/testdata/initial/file.fpp b/testdata/initial/file.fpp new file mode 100644 index 0000000..cdea27d --- /dev/null +++ b/testdata/initial/file.fpp @@ -0,0 +1,3 @@ +module Example { + constant Message = "Hello World" +}