Skip to main content

language_candidates_for_path

Function language_candidates_for_path 

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

Returns every language registered for a file path, most specific first: languages whose extension is a longer case-insensitive suffix of the path come before shorter ones, and ties keep catalog order.