Skip to content

Commit

Permalink
Merge pull request #940 from ForNeVeR/feature/new-extensions
Browse files Browse the repository at this point in the history
Add support for certain files from .NET ecosystem
  • Loading branch information
carmenbianca authored Apr 8, 2024
2 parents c525233 + c6e6178 commit d566aa9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ CLI command and its behaviour. There are no guarantees of stability for the
- More file types are recognised:
- Assembler (`.asm`) (#928)
- CUDA-C++ (`.cu`, `.cuh`) (#938)
- Various .NET files (`.csproj`, `.fsproj`, `.fsx`, `.props`, `.sln`,
`.vbproj`) (#940)

### Changed

Expand Down
7 changes: 7 additions & 0 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ class XQueryCommentStyle(CommentStyle):
".cs": CCommentStyle,
".csl": HtmlCommentStyle, # Bibliography (XML based)
".css": CssCommentStyle,
".csproj": HtmlCommentStyle,
".csv": UncommentableCommentStyle,
".cu": CCommentStyle,
".cuh": CCommentStyle,
Expand All @@ -621,6 +622,7 @@ class XQueryCommentStyle(CommentStyle):
".ex": PythonCommentStyle,
".exs": PythonCommentStyle,
".f": FortranCommentStyle,
".fsproj": HtmlCommentStyle,
".f03": ModernFortranCommentStyle,
".f08": ModernFortranCommentStyle,
".f90": ModernFortranCommentStyle,
Expand All @@ -634,6 +636,7 @@ class XQueryCommentStyle(CommentStyle):
".ftn": FortranCommentStyle,
".fpp": FortranCommentStyle,
".fs": CCommentStyle,
".fsx": CCommentStyle,
".ftl": FtlCommentStyle,
".gemspec": PythonCommentStyle,
".go": CCommentStyle,
Expand Down Expand Up @@ -716,6 +719,7 @@ class XQueryCommentStyle(CommentStyle):
".pptx": UncommentableCommentStyle,
".pri": PythonCommentStyle,
".pro": PythonCommentStyle,
".props": HtmlCommentStyle, # MSBuild files
".proto": CCommentStyle,
".ps1": PythonCommentStyle, # TODO: Multiline comments
".psm1": PythonCommentStyle, # TODO: Multiline comments
Expand Down Expand Up @@ -754,6 +758,8 @@ class XQueryCommentStyle(CommentStyle):
".scsyndef": UncommentableCommentStyle,
".sh": PythonCommentStyle,
".sld": LispCommentStyle, # Scheme Library Definition (R7RS)
# Visual Studio solution file, officially uncommentable:
".sln": UncommentableCommentStyle,
".sls": LispCommentStyle, # Scheme Library Source (R6RS)
".sml": MlCommentStyle,
".soy": CCommentStyle,
Expand All @@ -778,6 +784,7 @@ class XQueryCommentStyle(CommentStyle):
".ui": HtmlCommentStyle,
".v": CCommentStyle, # V-Lang source code
".vala": CCommentStyle,
".vbproj": HtmlCommentStyle,
".vim": VimCommentStyle,
".vm": VelocityCommentStyle,
".vsh": CCommentStyle, # V-Lang script
Expand Down

0 comments on commit d566aa9

Please sign in to comment.