ignore/types: add '*.hh' to C++ headers

Like .hpp, .hh is an occasionally used extension for C++ headers
(to distinguish them from C headers). At least one popular project,
FreeBSD, uses this extension.

See also: https://docs.fileformat.com/programming/hh/

PR #2192
This commit is contained in:
Conrad Meyer 2022-04-25 04:38:03 -07:00 committed by GitHub
parent 30ee6f08ee
commit d161acb0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("gradle", &["*.gradle"]), ("gradle", &["*.gradle"]),
("groovy", &["*.groovy", "*.gradle"]), ("groovy", &["*.groovy", "*.gradle"]),
("gzip", &["*.gz", "*.tgz"]), ("gzip", &["*.gz", "*.tgz"]),
("h", &["*.h", "*.hpp"]), ("h", &["*.h", "*.hh", "*.hpp"]),
("haml", &["*.haml"]), ("haml", &["*.haml"]),
("haskell", &["*.hs", "*.lhs", "*.cpphs", "*.c2hs", "*.hsc"]), ("haskell", &["*.hs", "*.lhs", "*.cpphs", "*.c2hs", "*.hsc"]),
("hbs", &["*.hbs"]), ("hbs", &["*.hbs"]),