Set up the initial code structure for the clock.

This commit is contained in:
Tom Alexander
2023-04-21 19:02:16 -04:00
parent 2d4a592846
commit c2ccf4da37
6 changed files with 52 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
use super::clock::clock;
use super::comment::comment;
use super::drawer::drawer;
use super::dynamic_block::dynamic_block;
@@ -45,6 +46,7 @@ pub fn non_paragraph_element<'r, 's>(
let example_block_matcher = parser_with_context!(example_block)(context);
let export_block_matcher = parser_with_context!(export_block)(context);
let src_block_matcher = parser_with_context!(src_block)(context);
let clock_matcher = parser_with_context!(clock)(context);
alt((
map(plain_list_matcher, Element::PlainList),
map(greater_block_matcher, Element::GreaterBlock),
@@ -58,5 +60,6 @@ pub fn non_paragraph_element<'r, 's>(
map(example_block_matcher, Element::ExampleBlock),
map(export_block_matcher, Element::ExportBlock),
map(src_block_matcher, Element::SrcBlock),
map(clock_matcher, Element::Clock),
))(input)
}