Basic implementation of greater block parser.

This commit is contained in:
Tom Alexander
2023-04-03 18:33:07 -04:00
parent 9e0bea4c3e
commit 6e6ec56d1f
3 changed files with 97 additions and 3 deletions

View File

@@ -128,6 +128,9 @@ pub enum ContextElement<'r, 's> {
/// Stores the indentation level of the current list item
ListItem(usize),
/// Stores the name of the greater block
GreaterBlock(&'s str),
}
#[derive(Debug)]
@@ -138,8 +141,6 @@ pub struct ExitMatcherNode<'r> {
#[derive(Clone)]
pub enum ChainBehavior<'r> {
AndParent(Option<&'r Matcher>),
#[allow(dead_code)] // Will be used when inside code/quote blocks
IgnoreParent(Option<&'r Matcher>),
}