Skip to content

Commit c49d1dc

Browse files
davidschrammelrswarbrick
authored andcommitted
Correct comment style for Mako templates
Signed-off-by: David Schrammel <davidschrammel@rivosinc.com>
1 parent 13303cf commit c49d1dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

licence-checker/licence-checker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,13 @@ def full_line_parts(self, licence_line):
9393

9494
SLASH_SLASH = "//"
9595
HASH = "#"
96+
HASH_HASH = "##"
9697
SLASH_STAR = "/*"
9798

9899
COMMENT_STYLES = {
99100
SLASH_SLASH: LineCommentStyle("//"),
100101
HASH: LineCommentStyle("#"),
102+
HASH_HASH: LineCommentStyle("##"),
101103
SLASH_STAR: BlockCommentStyle("/*", "*/"),
102104
"corefile": DifferentFirstLineCommentStyle("CAPI=2", "#"),
103105
}
@@ -175,7 +177,7 @@ def full_line_parts(self, licence_line):
175177
([".css"], SLASH_STAR), # CSS
176178
([".scss"], SLASH_SLASH), # SCSS
177179
# Templates (Last because there are overlaps with extensions above)
178-
([".tpl"], HASH), # Mako templates
180+
([".tpl"], [HASH_HASH, HASH]), # Mako templates
179181
]
180182

181183

0 commit comments

Comments
 (0)