1use crate::kind::HtmlSyntaxKind;
2use oak_core::{Language, LanguageCategory};
3
4#[derive(Debug, Clone)]
5pub struct HtmlLanguage {}
6
7impl HtmlLanguage {
8 pub fn new() -> Self {
9 Self::default()
10 }
11}
12
13impl Default for HtmlLanguage {
14 fn default() -> Self {
15 Self {}
16 }
17}
18
19impl Language for HtmlLanguage {
20 const NAME: &'static str = "html";
21 const CATEGORY: LanguageCategory = LanguageCategory::Markup;
22
23 type TokenType = HtmlSyntaxKind;
24 type ElementType = HtmlSyntaxKind;
25 type TypedRoot = crate::ast::HtmlDocument;
26}