tan-formatting 0.16.0

Formatting infrastructure for the Tan Language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// #todo Find a better name than Dialect, maybe Flavor?
// #todo Could we make dialects/formatting pluggable?

/// The dialect of the source Tan. The formatter offer customized formatting for
/// different Dialects.
#[derive(Copy, Clone, PartialEq, Eq)]
pub enum Dialect {
    Code,
    Data,
    Html,
    Css,
}

impl Default for Dialect {
    fn default() -> Self {
        Self::Code
    }
}