pub fn detect(path: &str, first_line: Option<&str>) -> Option<LanguageSpec>Expand description
Path → spec, pure in first_line: exact basename first, then the
extension table, then — only when the extension is unknown or
absent — whatever the (already-read) first line shebangs to.