Add a test case.

This commit is contained in:
Tom Alexander 2023-07-22 01:40:14 -04:00
parent e54218c0d7
commit caa6c41798
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,3 @@
foo <<bar>> baz
lorem << ipsum >> dolar

View File

@ -21,6 +21,7 @@ use crate::parser::org_macro::org_macro;
use crate::parser::plain_link::plain_link;
use crate::parser::radio_link::radio_link;
use crate::parser::radio_link::radio_target;
use crate::parser::target::target;
use crate::parser::text_markup::text_markup;
#[tracing::instrument(ret, level = "debug")]
@ -32,6 +33,7 @@ pub fn standard_set_object<'r, 's>(
not(|i| context.check_exit_matcher(i))(input)?;
alt((
map(parser_with_context!(target)(context), Object::Target),
map(parser_with_context!(line_break)(context), Object::LineBreak),
map(
parser_with_context!(inline_source_block)(context),
@ -98,6 +100,7 @@ pub fn any_object_except_plain_text<'r, 's>(
) -> Res<&'s str, Object<'s>> {
// Used for exit matchers so this does not check exit matcher condition.
alt((
map(parser_with_context!(target)(context), Object::Target),
map(parser_with_context!(line_break)(context), Object::LineBreak),
map(
parser_with_context!(inline_source_block)(context),