Add a comment about a shortcoming.

This commit is contained in:
Tom Alexander 2023-04-03 19:37:51 -04:00
parent d7f0a02bb8
commit 7023fb4617
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -27,6 +27,7 @@ pub fn greater_block<'r, 's>(
context: Context<'r, 's>,
input: &'s str,
) -> Res<&'s str, GreaterBlock<'s>> {
// TODO: Not handling indentation before start of block
let (remaining, (_begin, name)) = tuple((
tag_no_case("#+begin_"),
verify(name, |name: &str| match name.to_lowercase().as_str() {
@ -44,6 +45,7 @@ pub fn greater_block<'r, 's>(
let element_matcher = parser_with_context!(element)(&parser_context);
let exit_matcher = parser_with_context!(exit_matcher_parser)(&parser_context);
// TODO: Not handling nested greater blocks
let (remaining, (children, _exit_contents)) =
many_till(element_matcher, exit_matcher)(remaining)?;
let (remaining, _end) = greater_block_end(&parser_context, remaining)?;