diff --git a/changelog.d/changed/comment-cargo-lock.md b/changelog.d/changed/comment-cargo-lock.md new file mode 100644 index 00000000..fa335102 --- /dev/null +++ b/changelog.d/changed/comment-cargo-lock.md @@ -0,0 +1 @@ +- Allow Python-style comments in Cargo.lock files diff --git a/src/reuse/comment.py b/src/reuse/comment.py index 533bc3c0..ad7b4f2d 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -875,7 +875,7 @@ class XQueryCommentStyle(CommentStyle): ".yarnrc": PythonCommentStyle, "ansible.cfg": PythonCommentStyle, "archive.sctxar": UncommentableCommentStyle, # SuperCollider global archive - "Cargo.lock": UncommentableCommentStyle, + "Cargo.lock": PythonCommentStyle, "CMakeLists.txt": PythonCommentStyle, "CODEOWNERS": PythonCommentStyle, "configure.ac": M4CommentStyle,