Skip to main content

lang_for_path

Function lang_for_path 

Source
pub fn lang_for_path(path: &str) -> Option<&'static str>
Expand description

The canonical language name for a file path ("rust" for "src/main.rs"), or None.