summaryrefslogtreecommitdiff
path: root/support/texlab/crates/tex/src/miktex.rs
blob: 8ab399dc2bd2c19e02d9bc645e6a1a9f243b84a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::compile::*;
use super::{Distribution, DistributionKind};

#[derive(Debug, Default)]
pub struct Miktex;

impl Distribution for Miktex {
    fn kind(&self) -> DistributionKind {
        DistributionKind::Miktex
    }

    fn supports_format(&self, format: Format) -> bool {
        match format {
            Format::Latex | Format::Pdflatex => true,
            Format::Xelatex | Format::Lualatex => true,
        }
    }
}