oak-scss 0.0.11

SCSS CSS preprocessor language parser with support for modern CSS features and dynamic styling.
Documentation
#![doc = include_str!("readme.md")]
use oak_core::language::{Language, LanguageCategory};

/// Scss language implementation.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct ScssLanguage {
    // Scss language-specific configuration, currently empty.
}

impl ScssLanguage {
    /// Creates a Scss language instance.
    pub fn new() -> Self {
        Self {}
    }
}

impl Default for ScssLanguage {
    fn default() -> Self {
        Self {}
    }
}

impl Language for ScssLanguage {
    const NAME: &'static str = "scss";
    const CATEGORY: LanguageCategory = LanguageCategory::Programming;

    type TokenType = crate::lexer::token_type::ScssTokenType;
    type ElementType = crate::parser::element_type::ScssElementType;
    type TypedRoot = crate::ast::ScssRoot;
}