pub fn get_from_ext(ext: &str) -> Option<LANG>
Expand description

Detects the language associated to the input file extension.

Examples

use rust_code_analysis::get_from_ext;

let ext = "rs";

get_from_ext(ext).unwrap();