Skip to content

Commit

Permalink
Add .cabal and cabal.project as recognised file types for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ozkutuk committed Oct 14, 2024
1 parent 6827442 commit e7dc19a
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 e7dc19a

Please sign in to comment.