mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-07 15:44:22 +01:00
you forgot the important ones! (#3105)
This commit is contained in:
committed by
GitHub
parent
7f71220411
commit
f5ab33cfeb
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user