Prechádzať zdrojové kódy

fix: sort is_immediate

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 rokov pred
rodič
commit
5bcb475a09
1 zmenil súbory, kde vykonal 19 pridanie a 18 odobranie
  1. 19 18
      src/info/filetype.rs

+ 19 - 18
src/info/filetype.rs

@@ -25,42 +25,43 @@ impl FileExtensions {
             || file.name.ends_with(".ninja")
             || matches!(
                 file.name.as_str(),
+                // This should be sorted, e.g. vim :sort i
                 "BUILD"
-                    | "BUILD.bazel"
                     | "Brewfile"
-                    | "CMakeLists.txt"
+                    | "bsconfig.json"
+                    | "BUILD.bazel"
+                    | "build.gradle"
+                    | "build.sbt"
+                    | "build.xml"
                     | "Cargo.toml"
+                    | "CMakeLists.txt"
+                    | "composer.json"
                     | "Containerfile"
                     | "Dockerfile"
-                    | "GNUmakefile"
+                    | "Earthfile"
                     | "Gemfile"
+                    | "GNUmakefile"
                     | "Gruntfile.coffee"
                     | "Gruntfile.js"
                     | "Justfile"
                     | "Makefile"
-                    | "PKGBUILD"
+                    | "makefile"
+                    | "meson.build"
+                    | "mix.exs"
+                    | "package.json"
                     | "Pipfile"
+                    | "PKGBUILD"
                     | "Podfile"
+                    | "pom.xml"
                     | "Procfile"
                     | "Rakefile"
                     | "RoboFile.php"
                     | "SConstruct"
-                    | "Vagrantfile"
-                    | "WORKSPACE"
-                    | "bsconfig.json"
-                    | "build.gradle"
-                    | "build.sbt"
-                    | "build.xml"
-                    | "composer.json"
-                    | "makefile"
-                    | "meson.build"
-                    | "mix.exs"
-                    | "package.json"
-                    | "pom.xml"
                     | "tsconfig.json"
-                    | "webpack.config.js"
+                    | "Vagrantfile"
                     | "webpack.config.cjs"
-                    | "Earthfile"
+                    | "webpack.config.js"
+                    | "WORKSPACE"
             )
     }