diff --git a/src/parser/element.rs b/src/parser/element.rs index db30497..2568f34 100644 --- a/src/parser/element.rs +++ b/src/parser/element.rs @@ -1,4 +1,5 @@ use super::error::Res; +use super::greater_element::GreaterBlock; use super::greater_element::PlainList; use super::lesser_element::Paragraph; use super::paragraph::paragraph; @@ -13,6 +14,7 @@ use nom::combinator::map; pub enum Element<'s> { Paragraph(Paragraph<'s>), PlainList(PlainList<'s>), + GreaterBlock(GreaterBlock<'s>), /// The whitespace that follows an element. /// /// This isn't a real org-mode element. Except for items in plain lists, trailing blank lines belong to the preceding element. It is a separate `Element` in this enum to make parsing easier. @@ -24,6 +26,7 @@ impl<'s> Source<'s> for Element<'s> { match self { Element::Paragraph(obj) => obj.source, Element::PlainList(obj) => obj.source, + Element::GreaterBlock(obj) => obj.source, Element::TrailingWhitespace(src) => src, } } diff --git a/src/parser/greater_block.rs b/src/parser/greater_block.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/parser/greater_block.rs @@ -0,0 +1 @@ + diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 276be7d..fbb3fe7 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -1,6 +1,7 @@ mod document; mod element; mod error; +mod greater_block; mod greater_element; mod lesser_element; mod list;