summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordana <dana@dana.is>2019-04-06 07:02:04 -0500
committerAndrew Gallant <jamslam@gmail.com>2019-04-06 08:02:04 -0400
commit1604a18db3d896514e1d536781810642de4b31c1 (patch)
treee3b4decebb2b5525fe8824dc3d331fb11b2bb5fe
parent9eeb0b01ce21d397d4d7b10e1e35c8378ea38c5a (diff)
ignore/types: add *.am and *.in for C/C++/make
PR #1205
-rw-r--r--ignore/src/types.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index c04450cf..e4a31a0a 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -111,7 +111,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("brotli", &["*.br"]),
("buildstream", &["*.bst"]),
("bzip2", &["*.bz2", "*.tbz2"]),
- ("c", &["*.c", "*.h", "*.H", "*.cats"]),
+ ("c", &["*.[chH]", "*.[chH].in", "*.cats"]),
("cabal", &["*.cabal"]),
("cbor", &["*.cbor"]),
("ceylon", &["*.ceylon"]),
@@ -121,8 +121,8 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("creole", &["*.creole"]),
("config", &["*.cfg", "*.conf", "*.config", "*.ini"]),
("cpp", &[
- "*.C", "*.cc", "*.cpp", "*.cxx",
- "*.h", "*.H", "*.hh", "*.hpp", "*.hxx", "*.inl",
+ "*.[ChH]", "*.cc", "*.[ch]pp", "*.[ch]xx", "*.hh", "*.inl",
+ "*.[ChH].in", "*.cc.in", "*.[ch]pp.in", "*.[ch]xx.in", "*.hh.in",
]),
("crystal", &["Projectfile", "*.cr"]),
("cs", &["*.cs"]),
@@ -202,8 +202,9 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("lz4", &["*.lz4"]),
("m4", &["*.ac", "*.m4"]),
("make", &[
- "gnumakefile", "Gnumakefile", "GNUmakefile",
- "makefile", "Makefile",
+ "[Gg][Nn][Uu]makefile", "[Mm]akefile",
+ "[Gg][Nn][Uu]makefile.am", "[Mm]akefile.am",
+ "[Gg][Nn][Uu]makefile.in", "[Mm]akefile.in",
"*.mk", "*.mak"
]),
("mako", &["*.mako", "*.mao"]),