summaryrefslogtreecommitdiff
path: root/support/texlab/crates/distro/src/language.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/distro/src/language.rs')
-rw-r--r--support/texlab/crates/distro/src/language.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/texlab/crates/distro/src/language.rs b/support/texlab/crates/distro/src/language.rs
index 207b700581..201ed0702b 100644
--- a/support/texlab/crates/distro/src/language.rs
+++ b/support/texlab/crates/distro/src/language.rs
@@ -7,6 +7,7 @@ pub enum Language {
Aux,
Log,
Root,
+ Latexmkrc,
Tectonic,
}
@@ -21,6 +22,10 @@ impl Language {
return Some(Self::Tectonic);
}
+ if name.eq_ignore_ascii_case(".latexmkrc") || name.eq_ignore_ascii_case("latexmkrc") {
+ return Some(Self::Latexmkrc);
+ }
+
let extname = path.extension()?.to_str()?;
match extname.to_lowercase().as_str() {
"tex" | "sty" | "cls" | "def" | "lco" | "rnw" => Some(Self::Tex),