We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f68771 commit a2a614dCopy full SHA for a2a614d
1 file changed
src/syntax/languages/mod.rs
@@ -34,7 +34,7 @@ pub fn get_language(path: &Path) -> Option<(Language, &'static str)> {
34
35
match extension {
36
"rs" => Some((rust::language(), rust::HIGHLIGHT_QUERY)),
37
- "ts" | "tsx" => Some((typescript::language(), typescript::HIGHLIGHT_QUERY)),
+ "ts" | "tsx" | "mts" | "cts" => Some((typescript::language(), typescript::HIGHLIGHT_QUERY)),
38
"js" | "jsx" | "mjs" | "cjs" => Some((javascript::language(), javascript::HIGHLIGHT_QUERY)),
39
"py" | "pyw" => Some((python::language(), python::HIGHLIGHT_QUERY)),
40
"sh" | "bash" | "zsh" => Some((bash::language(), bash::HIGHLIGHT_QUERY)),
0 commit comments