From e45e7026f1708206038cde9873338780cb393eab 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] 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 852e088b6..1d315d4d1 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) ### Changed diff --git a/src/reuse/comment.py b/src/reuse/comment.py index eeba02b61..b4af065bd 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,