summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConrad Meyer <cse.cem@gmail.com>2022-04-25 04:38:03 -0700
committerGitHub <noreply@github.com>2022-04-25 07:38:03 -0400
commitd161acb0a360cd437214048e2580f4604f8d4b44 (patch)
tree7306052ae9745d2371f7af768d5fa1cb6d33a4fb
parent30ee6f08ee8e22c42ab2ef837c764f52656d025b (diff)
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
-rw-r--r--crates/ignore/src/default_types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 8f974ade..0cd9b12d 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -80,7 +80,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("gradle", &["*.gradle"]),
("groovy", &["*.groovy", "*.gradle"]),
("gzip", &["*.gz", "*.tgz"]),
- ("h", &["*.h", "*.hpp"]),
+ ("h", &["*.h", "*.hh", "*.hpp"]),
("haml", &["*.haml"]),
("haskell", &["*.hs", "*.lhs", "*.cpphs", "*.c2hs", "*.hsc"]),
("hbs", &["*.hbs"]),