pub fn detect_language_from_path(path: &str) -> StringExpand description
Detect programming language from file path extension
Maps file extensions to language names for semantic annotations.
§Arguments
path- File path to examine
§Returns
Language name as string, or “unknown” if extension not recognized
§Supported Extensions
.rs→ “rust”.py→ “python”.js→ “javascript”.ts,.tsx→ “typescript”.java→ “java”.c→ “c”.cpp,.cc,.cxx,.hpp→ “cpp”.go→ “go”.rb→ “ruby”.php→ “php”