Function language_from_ext

Source
pub fn language_from_ext(
    ext: &str,
    grammar_config: &GrammarConfig,
) -> Result<Language, LoadingError>
👎Deprecated since 0.8.1: You should use lang_name_from_file_ext instead.
Expand description

Create an instance of a language from a file extension

The user may optionally provide a map of overrides or additional file extensions.