Skip to content

Commit

Permalink
Merge pull request #1002 from sorairolake/json-supersets-support
Browse files Browse the repository at this point in the history
Add JSON supersets support
  • Loading branch information
carmenbianca authored Jun 18, 2024
2 parents b9f07f1 + da67771 commit e557921
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,26 @@ CLI command and its behaviour. There are no guarantees of stability for the
### Security
-->

## Unreleased - YYYY-MM-DD

### Added

- More file types are recognised:
- CSON (`.cson`) (#1002)
- Hjson (`.hjson`) (#1002)
- JSON5 (`.json5`) (#1002)
- JSON with Comments (`.jsonc`) (#1002)

### Changed

### Deprecated

### Removed

### Fixed

### Security

## 3.1.0a1 - 2024-05-28

### Added
Expand Down
4 changes: 4 additions & 0 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ class XQueryCommentStyle(CommentStyle):
".cpp": CCommentStyle,
".cs": CCommentStyle,
".csl": HtmlCommentStyle, # Bibliography (XML based)
".cson": PythonCommentStyle,
".css": CssCommentStyle,
".csproj": HtmlCommentStyle,
".csv": UncommentableCommentStyle,
Expand Down Expand Up @@ -663,6 +664,7 @@ class XQueryCommentStyle(CommentStyle):
".hbs": HandlebarsCommentStyle,
".hcl": PythonCommentStyle,
".hh": CCommentStyle,
".hjson": CCommentStyle,
".hpp": CCommentStyle,
".hrl": TexCommentStyle,
".hs": HaskellCommentStyle,
Expand All @@ -681,6 +683,8 @@ class XQueryCommentStyle(CommentStyle):
".jpeg": UncommentableCommentStyle,
".js": CCommentStyle,
".json": UncommentableCommentStyle,
".json5": CCommentStyle,
".jsonc": CCommentStyle,
".jsp": AspxCommentStyle,
".jsx": CCommentStyle,
".jy": PythonCommentStyle,
Expand Down

0 comments on commit e557921

Please sign in to comment.