oak_handlebars/language/
mod.rs

1use oak_core::{Language, LanguageCategory};
2
3#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash)]
4pub struct HandlebarsLanguage {}
5
6unsafe impl Send for HandlebarsLanguage {}
7unsafe impl Sync for HandlebarsLanguage {}
8
9impl Language for HandlebarsLanguage {
10    const NAME: &'static str = "handlebars";
11    const CATEGORY: LanguageCategory = LanguageCategory::Markup;
12
13    type TokenType = crate::kind::HandlebarsSyntaxKind;
14    type ElementType = crate::kind::HandlebarsSyntaxKind;
15    type TypedRoot = crate::ast::HandlebarsRoot;
16}