Merge pull request #624 from ericbn/filetypes

Add pom.xml and zwc filetypes
This commit is contained in:
Benjamin Sago 2020-01-19 16:20:59 +00:00 committed by GitHub
commit df0d30e966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {