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 {
|
pub fn get_language_identifier(path: &Path) -> &'static str {
|
||||||
match path.extension().and_then(|ext| ext.to_str()) {
|
match path.extension().and_then(|ext| ext.to_str()) {
|
||||||
Some("rs") => "rust",
|
Some("rs") => "rust",
|
||||||
|
Some("hs") => "haskell",
|
||||||
|
Some("rkt") | Some("scm") => "scheme",
|
||||||
Some("py") => "python",
|
Some("py") => "python",
|
||||||
Some("js") => "javascript",
|
Some("js") => "javascript",
|
||||||
Some("ts") => "typescript",
|
Some("ts") => "typescript",
|
||||||
|
|||||||
Reference in New Issue
Block a user