summaryrefslogtreecommitdiff
path: root/support/texlab/crates/tex/src/texlive.rs
blob: 4f90d0792650f5fd10b3ac4e52cb4a1fbfde5388 (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 Texlive;

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

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