From 9257420c8319154f66c11a0e1f94675ece4fae07 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 3 Apr 2023 19:19:33 -0400 Subject: [PATCH] Add comment defining problem. --- src/parser/plain_list.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser/plain_list.rs b/src/parser/plain_list.rs index e7cfef04..a320cdc0 100644 --- a/src/parser/plain_list.rs +++ b/src/parser/plain_list.rs @@ -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