From a909dc309ba944b703fa6f10148ddf3dc5d578e1 Mon Sep 17 00:00:00 2001 From: Kevin Broch <86068473+kbroch-rivosinc@users.noreply.github.com> Date: Fri, 28 Jun 2024 19:13:41 -0700 Subject: [PATCH 1/2] add octave/matlab file format support #604 --- CHANGELOG.md | 1 + src/reuse/comment.py | 16 +++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 017a085f8..e718d9fb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ CLI command and its behaviour. There are no guarantees of stability for the - Zsh (`.zshrc`) (#997) - Perl test (`.t`) (#997) - BATS test (`.bats`) (#997) + - Octave/Matlab (`.m`) (#604) - Support alternate spelling `--skip-unrecognized`. (#974) - In `annotate`, rename `--copyright-style` to `--copyright-prefix`. The former parameter is still supported. (#973) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index 49e232041..e4c4ad1d3 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -1,21 +1,22 @@ # SPDX-FileCopyrightText: 2019 Free Software Foundation Europe e.V. # SPDX-FileCopyrightText: 2019 Kirill Elagin # SPDX-FileCopyrightText: 2020 Dmitry Bogatov -# SPDX-FileCopyrightText: 2021-2022 Alliander N.V. # SPDX-FileCopyrightText: 2021 Alvar Penning -# SPDX-FileCopyrightText: 2021 Robin Vobruba # SPDX-FileCopyrightText: 2021 Matija Å uklje +# SPDX-FileCopyrightText: 2021 Robin Vobruba +# SPDX-FileCopyrightText: 2021-2022 Alliander N.V. +# SPDX-FileCopyrightText: 2022 Carmen Bianca Bakker # SPDX-FileCopyrightText: 2022 Florian Snow # SPDX-FileCopyrightText: 2022 Nico Rikken -# SPDX-FileCopyrightText: 2022 Stefan Hynek -# SPDX-FileCopyrightText: 2022 Carmen Bianca Bakker # SPDX-FileCopyrightText: 2022 Sebastian Crane -# SPDX-FileCopyrightText: 2023 Redradix S.L. +# SPDX-FileCopyrightText: 2022 Stefan Hynek +# SPDX-FileCopyrightText: 2023 Juelich Supercomputing Centre, Forschungszentrum Juelich GmbH # SPDX-FileCopyrightText: 2023 Kevin Meagher # SPDX-FileCopyrightText: 2023 Mathias Dannesbo -# SPDX-FileCopyrightText: 2023 Shun Sakai -# SPDX-FileCopyrightText: 2023 Juelich Supercomputing Centre, Forschungszentrum Juelich GmbH # SPDX-FileCopyrightText: 2023 Maxim Cournoyer +# SPDX-FileCopyrightText: 2023 Redradix S.L. +# SPDX-FileCopyrightText: 2023 Shun Sakai +# SPDX-FileCopyrightText: 2024 Rivos Inc. # # SPDX-License-Identifier: GPL-3.0-or-later @@ -700,6 +701,7 @@ class XQueryCommentStyle(CommentStyle): ".lisp": LispCommentStyle, ".lsp": LispCommentStyle, ".lua": HaskellCommentStyle, + ".m": TexCommentStyle, ".m4": M4CommentStyle, ".man": UnixManCommentStyle, ".markdown": HtmlCommentStyle, From ad48a9affe8a72fdee20ebca4c8b51b2c2cab875 Mon Sep 17 00:00:00 2001 From: Kevin Broch <86068473+kbroch-rivosinc@users.noreply.github.com> Date: Fri, 28 Jun 2024 20:45:15 -0700 Subject: [PATCH 2/2] add vhdl file support #564 --- CHANGELOG.md | 1 + src/reuse/comment.py | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e718d9fb3..44ae72761 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ CLI command and its behaviour. There are no guarantees of stability for the - Perl test (`.t`) (#997) - BATS test (`.bats`) (#997) - Octave/Matlab (`.m`) (#604) + - VHDL(`.vhdl`) (#564) - Support alternate spelling `--skip-unrecognized`. (#974) - In `annotate`, rename `--copyright-style` to `--copyright-prefix`. The former parameter is still supported. (#973) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index e4c4ad1d3..0e5514113 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -810,6 +810,7 @@ class XQueryCommentStyle(CommentStyle): ".v": CppCommentStyle, # V-Lang source code ".vala": CppCommentStyle, ".vbproj": HtmlCommentStyle, + ".vhdl": HaskellCommentStyle, ".vim": VimCommentStyle, ".vm": VelocityCommentStyle, ".vsh": CppCommentStyle, # V-Lang script