Skip to content

Commit

Permalink
Add support for RobotFramework
Browse files Browse the repository at this point in the history
  • Loading branch information
ralienpp committed Nov 14, 2024
1 parent d2ab913 commit 5082c5b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,4 @@ Contributors
- Skyler Grey <[email protected]>
- Emil Velikov <[email protected]>
- Linnea Gräf <[email protected]>
- Alex Railean <[email protected]>
7 changes: 7 additions & 0 deletions changelog.d/feature.784e2262.entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
git_email: [email protected]
git_user: Alex Railean
issue_id: null
message: Add support for RobotFramework
os_user: redacted
timestamp: 1731575694
type: feature
11 changes: 11 additions & 0 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# SPDX-FileCopyrightText: 2023 Shun Sakai <[email protected]>
# SPDX-FileCopyrightText: 2024 Rivos Inc.
# SPDX-FileCopyrightText: 2024 Anthony Loiseau <[email protected]>
# SPDX-FileCopyrightText: 2024 Alex Railean <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -508,6 +509,15 @@ class ReStructedTextCommentStyle(CommentStyle):
INDENT_AFTER_SINGLE = " "


class RobotFrameworkCommentStyle(CommentStyle):
"""RobotFramework comment style."""

SHORTHAND = "robot"

SINGLE_LINE = "#"
INDENT_AFTER_SINGLE = " "


class SemicolonCommentStyle(CommentStyle):
"""Semicolon comment style."""

Expand Down Expand Up @@ -764,6 +774,7 @@ class XQueryCommentStyle(CommentStyle):
".rbx": PythonCommentStyle,
".rkt": LispCommentStyle,
".Rmd": HtmlCommentStyle,
".robot": RobotFrameworkCommentStyle,
".rs": CppCommentStyle,
".rss": HtmlCommentStyle,
".rst": ReStructedTextCommentStyle,
Expand Down

0 comments on commit 5082c5b

Please sign in to comment.