From aa2c3e08a65cc6a0f57d819896f501f304ed6f2b Mon Sep 17 00:00:00 2001 From: James Wainwright Date: Fri, 9 Aug 2024 14:52:38 +0100 Subject: [PATCH] Allow Python-style comments in Cargo.lock files --- changelog.d/changed/comment-cargo-lock.md | 1 + src/reuse/comment.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/changed/comment-cargo-lock.md 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,