Add the code structure for diary sexp.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use super::clock::clock;
|
||||
use super::comment::comment;
|
||||
use super::diary_sexp::diary_sexp;
|
||||
use super::drawer::drawer;
|
||||
use super::dynamic_block::dynamic_block;
|
||||
use super::element::Element;
|
||||
@@ -47,6 +48,7 @@ pub fn non_paragraph_element<'r, 's>(
|
||||
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);
|
||||
let diary_sexp_matcher = parser_with_context!(diary_sexp)(context);
|
||||
alt((
|
||||
map(plain_list_matcher, Element::PlainList),
|
||||
map(greater_block_matcher, Element::GreaterBlock),
|
||||
@@ -61,5 +63,6 @@ pub fn non_paragraph_element<'r, 's>(
|
||||
map(export_block_matcher, Element::ExportBlock),
|
||||
map(src_block_matcher, Element::SrcBlock),
|
||||
map(clock_matcher, Element::Clock),
|
||||
map(diary_sexp_matcher, Element::DiarySexp),
|
||||
))(input)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user