diff --git a/verify-spdx-headers b/verify-spdx-headers index e3f6354..65e199e 100755 --- a/verify-spdx-headers +++ b/verify-spdx-headers @@ -52,12 +52,20 @@ class Index: '.toml': 'toml', '.md': 'md', '.rb': 'ruby', + '.c': 'c', + '.h': 'c', + '.cpp': 'c++', + '.hpp': 'c++', + '.cc': 'c++', + '.hh': 'c++', } def __init__(self): self.__languages = { 'python': Language('#+', shebang=True), 'ruby': Language('#+', shebang=True), + 'c': Language('//+', ('/\\*', '\\*/')), + 'c++': Language('//+', ('/\\*', '\\*/')), 'rust': Language('//+', '//!', ('/\\*', '\\*/')), }