pub fn from_extension(path: &Path) -> Option<SupportLang>Expand description
Guess which programming language a file is written in
Adapt from <https://github.com/Wilfred/difftastic/blob/master/src/parse/guess_language.rs>
N.B do not confuse it with FromStr trait. This function is to guess language from file extension.
We check against the most common file types and extensions first. These are hardcoded matches