1use oak_core::{Language, LanguageCategory};
2
3#[derive(Debug, Clone, Copy)]
5pub struct DotLanguage {
6 pub strict_mode: bool,
8 pub allow_digraph: bool,
10}
11
12impl Default for DotLanguage {
13 fn default() -> Self {
14 Self { strict_mode: false, allow_digraph: true }
15 }
16}
17
18impl Language for DotLanguage {
19 const NAME: &'static str = "dot";
20 const CATEGORY: LanguageCategory = LanguageCategory::Programming;
21
22 type TokenType = crate::kind::DotSyntaxKind;
23 type ElementType = crate::kind::DotSyntaxKind;
24 type TypedRoot = ();
25}