Explorar el Código

Recognize SCSS and Stylus as source for CSS files (#770)

0xflotus hace 5 años
padre
commit
d11ac5d49b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/info/sources.rs

+ 2 - 1
src/info/sources.rs

@@ -16,7 +16,8 @@ impl<'a> File<'a> {
     pub fn get_source_files(&self) -> Vec<PathBuf> {
         if let Some(ext) = &self.ext {
             match &ext[..] {
-                "css"   => vec![self.path.with_extension("sass"),   self.path.with_extension("less")],  // SASS, Less
+                "css"   => vec![self.path.with_extension("sass"), self.path.with_extension("scss"),  // SASS, SCSS
+                                self.path.with_extension("styl"), self.path.with_extension("less")],  // Stylus, Less
                 "js"    => vec![self.path.with_extension("coffee"), self.path.with_extension("ts")],  // CoffeeScript, TypeScript
 
                 "aux" |                                          // TeX: auxiliary file