Skip to main content

support_for_path

Function support_for_path 

Source
pub fn support_for_path(path: &Path) -> Option<&'static dyn Language>
Expand description

Get language support from a file path.

Returns None if the file has no extension, the extension is not recognized, or the feature is not enabled.