1use oak_core::{Language, LanguageCategory};
2
3#[derive(Debug, Clone, Default)]
5pub struct RstLanguage {
6 pub allow_directives: bool,
8 pub allow_substitutions: bool,
10 pub allow_roles: bool,
12 pub allow_footnotes: bool,
14 pub allow_citations: bool,
16 pub allow_admonitions: bool,
18}
19
20impl Language for RstLanguage {
21 const NAME: &'static str = "restructuredtext";
22 const CATEGORY: LanguageCategory = LanguageCategory::Markup;
23
24 type TokenType = crate::lexer::token_type::RstTokenType;
25 type ElementType = crate::parser::element_type::RstElementType;
26 type TypedRoot = crate::ast::RstRoot;
27}