From 75c721be6bec387623f46d8bdd9571a7ff6b5d49 Mon Sep 17 00:00:00 2001 From: Raphael Schlarb Date: Sun, 19 Jan 2025 16:47:58 +0100 Subject: [PATCH] Add .gperf as a recognised file type for comments --- AUTHORS.rst | 1 + changelog.d/added/comment-gperf.md | 2 ++ src/reuse/comment.py | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 changelog.d/added/comment-gperf.md diff --git a/AUTHORS.rst b/AUTHORS.rst index 498c62253..8b1070bb6 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -144,3 +144,4 @@ Contributors - Skyler Grey - Emil Velikov - Linnea Gräf +- Raphael Schlarb diff --git a/changelog.d/added/comment-gperf.md b/changelog.d/added/comment-gperf.md new file mode 100644 index 000000000..7f831151c --- /dev/null +++ b/changelog.d/added/comment-gperf.md @@ -0,0 +1,2 @@ +- Added `.gperf` (CppCommentStyle) as a recognised file type for comments. + (#1131) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index d48e3bc45..304c91998 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -18,6 +18,7 @@ # SPDX-FileCopyrightText: 2023 Shun Sakai # SPDX-FileCopyrightText: 2024 Rivos Inc. # SPDX-FileCopyrightText: 2024 Anthony Loiseau +# SPDX-FileCopyrightText: 2025 Raphael Schlarb # # SPDX-License-Identifier: GPL-3.0-or-later @@ -654,6 +655,7 @@ class XQueryCommentStyle(CommentStyle): ".ftl": FtlCommentStyle, ".gemspec": PythonCommentStyle, ".go": CppCommentStyle, + ".gperf": CppCommentStyle, ".gradle": CppCommentStyle, ".graphql": PythonCommentStyle, ".graphqls": PythonCommentStyle,