mod parser;
pub(crate) use parser::parse_tailwind;
pub(crate) use parser::take_until_unbalanced;
#[derive(Clone, Debug, PartialEq, Default)]
pub(crate) struct AstStyle<'a> {
pub source: &'a str,
pub important: bool,
pub negative: bool,
pub variants: Vec<&'a str>,
pub elements: Vec<&'a str>,
pub arbitrary: Option<&'a str>,
}
#[derive(Clone, Debug, PartialEq, Default)]
struct AstElements<'a> {
pub elements: Vec<&'a str>,
}
#[derive(Clone, Debug, PartialEq)]
enum ASTVariant<'a> {
Normal(&'a str),
DataAttribute(&'a str),
ArbitraryAttribute(&'a str),
}
#[derive(Clone, Debug, PartialEq)]
pub(crate) struct AstParseOptions<'a> {
pub prefix: &'a str,
pub separator: &'a str,
}
impl Default for AstParseOptions<'static> {
fn default() -> Self {
Self {
prefix: "",
separator: ":",
}
}
}