Skip to content

Commit

Permalink
Merge pull request #928 from monacofj/default-assembly-comment
Browse files Browse the repository at this point in the history
Assume  's' and 'S' sufixes for GNU Assembler, and 'asm' for NASM
  • Loading branch information
carmenbianca authored Apr 8, 2024
2 parents 6e592e8 + b43fbaa commit daaea7c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Test formatting with black
run: |
poetry run isort --check src/ tests/
poetry run black .
poetry run black --check .
mypy:
runs-on: ubuntu-22.04
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ CLI command and its behaviour. There are no guarantees of stability for the
### Security
-->

## Unreleased - YYYY-MM-DD

### Added

- More file types are recognised:
- Assembler (`.asm`) (#928)

### Changed

- `.s` files now use the Python comment style as per GNU Assembler (gas). (#928)

### Deprecated

### Removed

### Fixed

### Security

## 3.0.2 - 2024-04-08

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ class XQueryCommentStyle(CommentStyle):
".asc": CCommentStyle,
".asciidoc": CCommentStyle,
".ashx": AspxCommentStyle,
".asm": LispCommentStyle, # ASM assembler
".asmx": AspxCommentStyle,
".aspx": AspxCommentStyle,
".aux": TexCommentStyle,
Expand Down Expand Up @@ -737,7 +738,7 @@ class XQueryCommentStyle(CommentStyle):
".rs": CCommentStyle,
".rss": HtmlCommentStyle,
".rst": ReStructedTextCommentStyle,
".s": LispCommentStyle,
".s": PythonCommentStyle, # Assume GNU Assembler for x86
".sass": CssCommentStyle,
".sbt": CCommentStyle,
".sc": CCommentStyle, # SuperCollider source file
Expand Down

0 comments on commit daaea7c

Please sign in to comment.