From e7dc19a5cc4001c93b6bfcbb8a0e01bdf0d8944e 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 | 2 ++ src/reuse/comment.py | 2 ++ 2 files changed, 4 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 00000000..cafa9a79 --- /dev/null +++ b/changelog.d/added/comment-cabal.md @@ -0,0 +1,2 @@ +- 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 9d487265..5b0ca08f 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,