Skip to content

Commit

Permalink
Merge pull request #543 from yamanq/php
Browse files Browse the repository at this point in the history
Add support for PHP header
  • Loading branch information
nicorikken authored Jul 6, 2022
2 parents fceb67f + a9c9c0b commit 8683586
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ Contributors

- Linus Sehn <linus@fsfe.org>

- Yaman Qalieh

Translators
-----------

Expand Down
2 changes: 2 additions & 0 deletions src/reuse/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V. <https://alliander.com>
# SPDX-FileCopyrightText: 2021 Robin Vobruba <hoijui.quaero@gmail.com>
# SPDX-FileCopyrightText: 2022 Florian Snow <florian@familysnow.net>
# SPDX-FileCopyrightText: 2022 Yaman Qalieh
#
# SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -295,6 +296,7 @@ def find_and_replace_header(
prefix
for com_style, prefix in (
(CCommentStyle, "#!"), # e.g. V-Lang
(CCommentStyle, "<?php"), # e.g. PHP
(HtmlCommentStyle, "<?xml"), # e.g. XML/XHTML
(PythonCommentStyle, "#!"), # e.g. Shell, Python
)
Expand Down

0 comments on commit 8683586

Please sign in to comment.