Skip to main content

language_for_extension

Function language_for_extension 

Source
pub fn language_for_extension(path: &Path) -> Option<LangId>
Expand description

Classify by name without reading the file. A .h result is provisional C; the parser resolves C, C++ or Objective-C from the header’s contents.