Skip to content

Commit

Permalink
Merge pull request #1034 from Thannoy/tmp/fix-gnu-ld-and-asm
Browse files Browse the repository at this point in the history
comment: fix GNU ld and as files
  • Loading branch information
carmenbianca authored Jul 8, 2024
2 parents 711fd28 + 869a94e commit cc63716
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/changed/comment_gnu_as.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `.s` files (GNU as) now use the C comment style (#1034)
1 change: 1 addition & 0 deletions changelog.d/changed/comment_gnu_ld.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `.ld` files (GNU ld) now use the C comment style (#1034)
5 changes: 3 additions & 2 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# SPDX-FileCopyrightText: 2023 Redradix S.L. <[email protected]>
# SPDX-FileCopyrightText: 2023 Shun Sakai <[email protected]>
# SPDX-FileCopyrightText: 2024 Rivos Inc.
# SPDX-FileCopyrightText: 2024 Anthony Loiseau <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -696,7 +697,7 @@ class XQueryCommentStyle(CommentStyle):
".kts": CppCommentStyle,
".l": LispCommentStyle,
".latex": TexCommentStyle,
".ld": CppCommentStyle,
".ld": CCommentStyle,
".less": CCommentStyle,
".license": EmptyCommentStyle,
".lisp": LispCommentStyle,
Expand Down Expand Up @@ -769,7 +770,7 @@ class XQueryCommentStyle(CommentStyle):
".rs": CppCommentStyle,
".rss": HtmlCommentStyle,
".rst": ReStructedTextCommentStyle,
".s": PythonCommentStyle, # Assume GNU Assembler for x86
".s": CCommentStyle,
".sass": CCommentStyle,
".sbt": CppCommentStyle,
".sc": CppCommentStyle, # SuperCollider source file
Expand Down

0 comments on commit cc63716

Please sign in to comment.