Add a test case.
This commit is contained in:
parent
e54218c0d7
commit
caa6c41798
3
org_mode_samples/target/simple.org
Normal file
3
org_mode_samples/target/simple.org
Normal file
@ -0,0 +1,3 @@
|
||||
foo <<bar>> baz
|
||||
|
||||
lorem << ipsum >> dolar
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user