Added boxes.

This commit is contained in:
Tom Alexander
2022-10-14 20:52:49 -04:00
parent 9e3ea29634
commit 8a6868f299
3 changed files with 13 additions and 13 deletions

View File

@@ -133,7 +133,7 @@ pub fn paragraph_end(input: &str) -> Res<&str, &str> {
}
pub fn document(input: &str) -> Res<&str, Vec<(Vec<TextElement>, &str)>> {
let initial_context = NomContext::new(&mut paragraph_end);
let initial_context = NomContext::new(Box::new(paragraph_end));
todo!()
// many1(parser_with_context!(paragraph)(initial_context))(input)
}