Skip to content

Commit

Permalink
Merge pull request #1089 from ozkutuk/cabal-extension
Browse files Browse the repository at this point in the history
Add `.cabal` and `cabal.project` as recognised file types for comments
  • Loading branch information
carmenbianca authored Oct 16, 2024
2 parents 6827442 + e7dc19a commit 2b26734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.d/added/comment-cabal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added `.cabal` and `cabal.project` (Haskell) as recognised file types for
comments. (#1089)
2 changes: 2 additions & 0 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ class XQueryCommentStyle(CommentStyle):
".bib": BibTexCommentStyle,
".bzl": PythonCommentStyle,
".c": CCommentStyle,
".cabal": HaskellCommentStyle,
".cc": CppCommentStyle,
".cjs": CppCommentStyle,
".cl": LispCommentStyle,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2b26734

Please sign in to comment.