Skip to content

Commit

Permalink
Correct comment style for Mako templates
Browse files Browse the repository at this point in the history
Signed-off-by: David Schrammel <[email protected]>
  • Loading branch information
davidschrammel authored and rswarbrick committed Feb 11, 2025
1 parent 13303cf commit c49d1dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion licence-checker/licence-checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ def full_line_parts(self, licence_line):

SLASH_SLASH = "//"
HASH = "#"
HASH_HASH = "##"
SLASH_STAR = "/*"

COMMENT_STYLES = {
SLASH_SLASH: LineCommentStyle("//"),
HASH: LineCommentStyle("#"),
HASH_HASH: LineCommentStyle("##"),
SLASH_STAR: BlockCommentStyle("/*", "*/"),
"corefile": DifferentFirstLineCommentStyle("CAPI=2", "#"),
}
Expand Down Expand Up @@ -175,7 +177,7 @@ def full_line_parts(self, licence_line):
([".css"], SLASH_STAR), # CSS
([".scss"], SLASH_SLASH), # SCSS
# Templates (Last because there are overlaps with extensions above)
([".tpl"], HASH), # Mako templates
([".tpl"], [HASH_HASH, HASH]), # Mako templates
]


Expand Down

0 comments on commit c49d1dc

Please sign in to comment.