Skip to content

Commit 501fbf7

Browse files
committed
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.
1 parent 12c562c commit 501fbf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/info/filetype.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl FileExtensions {
2424
file.name.ends_with(".ninja") ||
2525
file.name_is_one_of( &[
2626
"Makefile", "Cargo.toml", "SConstruct", "CMakeLists.txt",
27-
"build.gradle", "Rakefile", "package.json", "Gruntfile.js",
27+
"build.gradle", "pom.xml", "Rakefile", "package.json", "Gruntfile.js",
2828
"Gruntfile.coffee", "BUILD", "BUILD.bazel", "WORKSPACE", "build.xml",
2929
"webpack.config.js", "meson.build",
3030
])
@@ -88,7 +88,7 @@ impl FileExtensions {
8888
}
8989

9090
fn is_compiled(&self, file: &File) -> bool {
91-
if file.extension_is_one_of( &[ "class", "elc", "hi", "o", "pyc" ]) {
91+
if file.extension_is_one_of( &[ "class", "elc", "hi", "o", "pyc", "zwc" ]) {
9292
true
9393
}
9494
else if let Some(dir) = file.parent_dir {

0 commit comments

Comments
 (0)