Skip to main content

detect_language

Function detect_language 

Source
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.