Skip to content

Commit a2a614d

Browse files
authored
fix: add other typescript extensions (#84)
1 parent 1f68771 commit a2a614d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/syntax/languages/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn get_language(path: &Path) -> Option<(Language, &'static str)> {
3434

3535
match extension {
3636
"rs" => Some((rust::language(), rust::HIGHLIGHT_QUERY)),
37-
"ts" | "tsx" => Some((typescript::language(), typescript::HIGHLIGHT_QUERY)),
37+
"ts" | "tsx" | "mts" | "cts" => Some((typescript::language(), typescript::HIGHLIGHT_QUERY)),
3838
"js" | "jsx" | "mjs" | "cjs" => Some((javascript::language(), javascript::HIGHLIGHT_QUERY)),
3939
"py" | "pyw" => Some((python::language(), python::HIGHLIGHT_QUERY)),
4040
"sh" | "bash" | "zsh" => Some((bash::language(), bash::HIGHLIGHT_QUERY)),

0 commit comments

Comments
 (0)