pub fn detect_language(path: &Path) -> Option<Box<dyn LanguageParser>>Expand description
Detects the programming language from a file path.
Returns None if we don’t support the file’s extension.
pub fn detect_language(path: &Path) -> Option<Box<dyn LanguageParser>>Detects the programming language from a file path.
Returns None if we don’t support the file’s extension.