From 1604a18db3d896514e1d536781810642de4b31c1 Mon Sep 17 00:00:00 2001 From: dana Date: Sat, 6 Apr 2019 07:02:04 -0500 Subject: ignore/types: add *.am and *.in for C/C++/make PR #1205 --- ignore/src/types.rs | 11 ++++++----- 1 file 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"]), -- cgit v1.2.3