Compare commits
No commits in common. "9bdec391f143f1b808092add0a2eba3992bf4f3a" and "dd009498dddfc91596c048393a8a455355265179" have entirely different histories.
9bdec391f1
...
dd009498dd
@ -2,9 +2,3 @@
|
||||
|
||||
{{{foo(bar
|
||||
baz)}}}
|
||||
|
||||
{{{foo(foo )}}}
|
||||
|
||||
{{{foo(foo , bar )}}}
|
||||
|
||||
{{{foo(foo , bar , baz )}}}
|
||||
|
@ -1,13 +1,11 @@
|
||||
use nom::bytes::complete::tag;
|
||||
use nom::character::complete::anychar;
|
||||
use nom::character::complete::space0;
|
||||
use nom::combinator::not;
|
||||
use nom::combinator::opt;
|
||||
use nom::combinator::peek;
|
||||
use nom::combinator::verify;
|
||||
use nom::multi::many0;
|
||||
use nom::multi::separated_list0;
|
||||
use nom::sequence::tuple;
|
||||
|
||||
use super::org_source::OrgSource;
|
||||
use super::util::maybe_consume_object_trailing_whitespace_if_not_exiting;
|
||||
@ -69,7 +67,7 @@ fn org_macro_args<'b, 'g, 'r, 's>(
|
||||
let (remaining, _) = tag("(")(input)?;
|
||||
let (remaining, args) =
|
||||
separated_list0(tag(","), parser_with_context!(org_macro_arg)(context))(remaining)?;
|
||||
let (remaining, _) = tuple((space0, tag(")")))(remaining)?;
|
||||
let (remaining, _) = tag(")")(remaining)?;
|
||||
|
||||
Ok((remaining, args))
|
||||
}
|
||||
@ -84,10 +82,6 @@ fn org_macro_arg<'b, 'g, 'r, 's>(
|
||||
loop {
|
||||
not(parser_with_context!(exit_matcher_parser)(context))(remaining)?;
|
||||
not(peek(tag("}}}")))(remaining)?;
|
||||
if peek(tuple((space0::<OrgSource<'_>, CustomError<_>>, tag(")"))))(remaining).is_ok() {
|
||||
break;
|
||||
}
|
||||
|
||||
let (new_remaining, next_char) = anychar(remaining)?;
|
||||
if escaping {
|
||||
remaining = new_remaining;
|
||||
|
Loading…
x
Reference in New Issue
Block a user