Skip to content

Commit

Permalink
Merge pull request #1131 from RaphiaRa/gperf-extension
Browse files Browse the repository at this point in the history
Add .gperf as a recognised file type for comments
  • Loading branch information
floriansnow authored Feb 3, 2025
2 parents 7a3a7c1 + 75c721b commit ff8c50f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,4 @@ Contributors
- Skyler Grey <sky@a.starrysky.fyi>
- Emil Velikov <emil.l.velikov@gmail.com>
- Linnea Gräf <nea@nea.moe>
- Raphael Schlarb <info@raphael.schlarb.one>
2 changes: 2 additions & 0 deletions changelog.d/added/comment-gperf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added `.gperf` (CppCommentStyle) as a recognised file type for comments.
(#1131)
2 changes: 2 additions & 0 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# SPDX-FileCopyrightText: 2023 Shun Sakai <sorairolake@protonmail.ch>
# SPDX-FileCopyrightText: 2024 Rivos Inc.
# SPDX-FileCopyrightText: 2024 Anthony Loiseau <anthony.loiseau@allcircuits.com>
# SPDX-FileCopyrightText: 2025 Raphael Schlarb <info@raphael.schlarb.one>
#
# SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -654,6 +655,7 @@ class XQueryCommentStyle(CommentStyle):
".ftl": FtlCommentStyle,
".gemspec": PythonCommentStyle,
".go": CppCommentStyle,
".gperf": CppCommentStyle,
".gradle": CppCommentStyle,
".graphql": PythonCommentStyle,
".graphqls": PythonCommentStyle,
Expand Down

0 comments on commit ff8c50f

Please sign in to comment.