Skip to content

Commit

Permalink
Add C/C++ support
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel McCallum <[email protected]>
  • Loading branch information
npmccallum committed Jul 15, 2021
1 parent 60b35b4 commit 32f8b3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions verify-spdx-headers
Original file line number Diff line number Diff line change
Expand Up @@ -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('//+', '//!', ('/\\*', '\\*/')),
}

Expand Down

0 comments on commit 32f8b3d

Please sign in to comment.