Răsfoiți Sursa

fix issue 1145

tommady 3 ani în urmă
părinte
comite
5c7620e4f8
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/info/filetype.rs

+ 2 - 1
src/info/filetype.rs

@@ -22,9 +22,10 @@ impl FileExtensions {
     #[allow(clippy::case_sensitive_file_extension_comparisons)]
     fn is_immediate(&self, file: &File<'_>) -> bool {
         file.name.to_lowercase().starts_with("readme") ||
+        file.name.to_lowercase().starts_with("makefile") ||
         file.name.ends_with(".ninja") ||
         file.name_is_one_of( &[
-            "Makefile", "Cargo.toml", "SConstruct", "CMakeLists.txt",
+            "GNUmakefile", "Cargo.toml", "SConstruct", "CMakeLists.txt",
             "build.gradle", "pom.xml", "Rakefile", "package.json", "Gruntfile.js",
             "Gruntfile.coffee", "BUILD", "BUILD.bazel", "WORKSPACE", "build.xml", "Podfile",
             "webpack.config.js", "meson.build", "composer.json", "RoboFile.php", "PKGBUILD",