From 250b83ad60e66e12e299f68aca48326878f6ffde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berk=20=C3=96zk=C3=BCt=C3=BCk?= Date: Mon, 14 Oct 2024 22:19:00 +0200 Subject: [PATCH] Add `.cabal` and `cabal.project` as recognised file types for comments --- changelog.d/added/comment-cabal.md | 1 + src/reuse/comment.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelog.d/added/comment-cabal.md diff --git a/changelog.d/added/comment-cabal.md b/changelog.d/added/comment-cabal.md new file mode 100644 index 000000000..9065e6780 --- /dev/null +++ b/changelog.d/added/comment-cabal.md @@ -0,0 +1 @@ +- Added `.cabal` and `cabal.project` (Haskell) as recognised file types for comments. (#1089) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index 9d4872657..5b0ca08f3 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -608,6 +608,7 @@ class XQueryCommentStyle(CommentStyle): ".bib": BibTexCommentStyle, ".bzl": PythonCommentStyle, ".c": CCommentStyle, + ".cabal": HaskellCommentStyle, ".cc": CppCommentStyle, ".cjs": CppCommentStyle, ".cl": LispCommentStyle, @@ -878,6 +879,7 @@ class XQueryCommentStyle(CommentStyle): ".yarnrc": PythonCommentStyle, "ansible.cfg": PythonCommentStyle, "archive.sctxar": UncommentableCommentStyle, # SuperCollider global archive + "cabal.project": HaskellCommentStyle, "Cargo.lock": PythonCommentStyle, "CMakeLists.txt": PythonCommentStyle, "CODEOWNERS": PythonCommentStyle,