Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include support for Pascal (.pas) file types #1129

Open
klmcadams opened this issue Jan 13, 2025 · 0 comments
Open

Include support for Pascal (.pas) file types #1129

klmcadams opened this issue Jan 13, 2025 · 0 comments

Comments

@klmcadams
Copy link
Contributor

Include support for adding license headers to Pascal (.pas) file types by adding the following code to src/reuse/comment.py:

class PascalCommentStyle(CommentStyle):
    """Pascal comment style."""

    SHORTHAND = "pas"

    SINGLE_LINE = "//"
    INDENT_AFTER_SINGLE = " "
    MULTI_LINE = MultiLineSegments("(*", "*", "*)")
    INDENT_BEFORE_MIDDLE = " "
    INDENT_AFTER_MIDDLE = " "
    INDENT_BEFORE_END = " "

Add ".pas": PascalCommentStyle, to the EXTENSION_COMMENT_STYLE_MAP.

If this is okay, I can open a pull request with this suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant