Revert the rest_end functions.
This commit is contained in:
parent
54c66fb4d6
commit
bc3224be7a
@ -483,18 +483,32 @@ fn time_rest<'b, 'g, 'r, 's>(
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
fn active_time_rest_end<'b, 'g, 'r, 's>(
|
||||
_context: RefContext<'b, 'g, 'r, 's>,
|
||||
context: RefContext<'b, 'g, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
recognize(verify(anychar, |c| ">\n".contains(*c)))(input)
|
||||
alt((
|
||||
recognize(verify(anychar, |c| ">\n".contains(*c))),
|
||||
recognize(tuple((space1, parser_with_context!(repeater)(context)))),
|
||||
recognize(tuple((
|
||||
space1,
|
||||
parser_with_context!(warning_delay)(context),
|
||||
))),
|
||||
))(input)
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
fn inactive_time_rest_end<'b, 'g, 'r, 's>(
|
||||
_context: RefContext<'b, 'g, 'r, 's>,
|
||||
context: RefContext<'b, 'g, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
recognize(verify(anychar, |c| "]\n".contains(*c)))(input)
|
||||
alt((
|
||||
recognize(verify(anychar, |c| "]\n".contains(*c))),
|
||||
recognize(tuple((space1, parser_with_context!(repeater)(context)))),
|
||||
recognize(tuple((
|
||||
space1,
|
||||
parser_with_context!(warning_delay)(context),
|
||||
))),
|
||||
))(input)
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
|
Loading…
Reference in New Issue
Block a user