Skip to main content

resolve_extension

Function resolve_extension 

Source
pub fn resolve_extension(ext: &str) -> Option<LanguageName>
Expand description

Resolve a file extension to a plugin language.

Consulted after the native table (see crate::Lang::detect_from_path), so a plugin cannot shadow a built-in language by accident. Whether it should be able to, deliberately, is a separate question — deferred until someone asks for it.