Skip to main content

for_path

Function for_path 

Source
pub fn for_path(path: &Path) -> Option<Syntax>
Expand description

Loads the language covering paths extension, if one is configured.

Files that fail to parse are skipped, so one broken language file does not take the working ones down with it.