Add comment defining problem.

This commit is contained in:
Tom Alexander 2023-04-03 19:19:33 -04:00
parent ddea313401
commit 9257420c83
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ pub fn plain_list<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s s
let (remaining, first_item) = plain_list_item(context, input)?;
let plain_list_item_matcher = parser_with_context!(plain_list_item)(context);
let exit_matcher = parser_with_context!(exit_matcher_parser)(context);
// TODO: The problem is this expects the list to be followed by something that matches the exit matcher, but after we have the first plain list item, really anything that is not a plain list item is a good exit condition.
let (remaining, (mut children, _exit_contents)) = many_till(
verify(plain_list_item_matcher, |pli| {
pli.indentation == first_item.indentation