you forgot the important ones! (#3105)

This commit is contained in:
Dhanji R. Prasanna
2025-06-27 15:49:46 +10:00
committed by GitHub
parent 7f71220411
commit f5ab33cfeb

View File

@@ -4,6 +4,8 @@ use std::path::Path;
pub fn get_language_identifier(path: &Path) -> &'static str {
match path.extension().and_then(|ext| ext.to_str()) {
Some("rs") => "rust",
Some("hs") => "haskell",
Some("rkt") | Some("scm") => "scheme",
Some("py") => "python",
Some("js") => "javascript",
Some("ts") => "typescript",