Skip to content

Commit 32f8b3d

Browse files
committed
Add C/C++ support
Signed-off-by: Nathaniel McCallum <[email protected]>
1 parent 60b35b4 commit 32f8b3d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

verify-spdx-headers

+8
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,20 @@ class Index:
5252
'.toml': 'toml',
5353
'.md': 'md',
5454
'.rb': 'ruby',
55+
'.c': 'c',
56+
'.h': 'c',
57+
'.cpp': 'c++',
58+
'.hpp': 'c++',
59+
'.cc': 'c++',
60+
'.hh': 'c++',
5561
}
5662

5763
def __init__(self):
5864
self.__languages = {
5965
'python': Language('#+', shebang=True),
6066
'ruby': Language('#+', shebang=True),
67+
'c': Language('//+', ('/\\*', '\\*/')),
68+
'c++': Language('//+', ('/\\*', '\\*/')),
6169
'rust': Language('//+', '//!', ('/\\*', '\\*/')),
6270
}
6371

0 commit comments

Comments
 (0)