def parse_js_or_scss(contents, filename, options)
      if filename =~ /\.scss$/
        docs = Css::Parser.new(contents, options).parse
      else
        docs = Js::Parser.new(contents, options).parse
        docs = Js::Ast.new(docs).detect_all!
      end
    end
def parse_js_or_scss(contents, filename, options)
      if filename =~ /\.scss$/
        docs = Css::Parser.new(contents, options).parse
      else
        docs = Js::Parser.new(contents, options).parse
        docs = Js::Ast.new(docs).detect_all!
      end
    end
Parses the file depending on filename as JS or SCSS