소스 검색

Add pom.xml and zwc filetypes

pom.xml (Maven) is popularly used for Java projects, along with the
already existing build.xml (Ant) and build.gradle (Gradle) immediate
files.

zwc stands for Zsh Word Code and contains compiled Z Shell scripts or
functions.
Eric Nielsen 6 년 전
부모
커밋
501fbf7182
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/info/filetype.rs

+ 2 - 2
src/info/filetype.rs

@@ -24,7 +24,7 @@ impl FileExtensions {
         file.name.ends_with(".ninja") ||
         file.name_is_one_of( &[
             "Makefile", "Cargo.toml", "SConstruct", "CMakeLists.txt",
-            "build.gradle", "Rakefile", "package.json", "Gruntfile.js",
+            "build.gradle", "pom.xml", "Rakefile", "package.json", "Gruntfile.js",
             "Gruntfile.coffee", "BUILD", "BUILD.bazel", "WORKSPACE", "build.xml",
             "webpack.config.js", "meson.build",
         ])
@@ -88,7 +88,7 @@ impl FileExtensions {
     }
 
     fn is_compiled(&self, file: &File) -> bool {
-        if file.extension_is_one_of( &[ "class", "elc", "hi", "o", "pyc" ]) {
+        if file.extension_is_one_of( &[ "class", "elc", "hi", "o", "pyc", "zwc" ]) {
             true
         }
         else if let Some(dir) = file.parent_dir {