Skip to main content

oak_xml/language/
mod.rs

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