Code structure for fixed width area.

This commit is contained in:
Tom Alexander
2023-04-21 22:04:22 -04:00
parent f97ca7a67d
commit 5ae8ac61e5
7 changed files with 64 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ use super::diary_sexp::diary_sexp;
use super::drawer::drawer;
use super::dynamic_block::dynamic_block;
use super::element::Element;
use super::fixed_width_area::fixed_width_area;
use super::footnote_definition::footnote_definition;
use super::greater_block::greater_block;
use super::lesser_block::comment_block;
@@ -49,6 +50,7 @@ pub fn non_paragraph_element<'r, 's>(
let src_block_matcher = parser_with_context!(src_block)(context);
let clock_matcher = parser_with_context!(clock)(context);
let diary_sexp_matcher = parser_with_context!(diary_sexp)(context);
let fixed_width_area_matcher = parser_with_context!(fixed_width_area)(context);
alt((
map(plain_list_matcher, Element::PlainList),
map(greater_block_matcher, Element::GreaterBlock),
@@ -64,5 +66,6 @@ pub fn non_paragraph_element<'r, 's>(
map(src_block_matcher, Element::SrcBlock),
map(clock_matcher, Element::Clock),
map(diary_sexp_matcher, Element::DiarySexp),
map(fixed_width_area_matcher, Element::FixedWidthArea),
))(input)
}