Not sure whats going on.
This commit is contained in:
@@ -130,6 +130,7 @@ pub fn always_fail<'r, 's>(_context: Context<'r, 's>, input: &'s str) -> Res<&'s
|
||||
/// Walk backwards unconsuming blank lines and line endings.
|
||||
///
|
||||
/// List items are a special case where the trailing blank lines do not belong to it, unlike all other elements. Rather than write that special logic into each child parser, this just walks backwards through the consumed input to unconsume trailing blank lines and line breaks.
|
||||
#[tracing::instrument(ret, level = "debug")]
|
||||
pub fn regurgitate<'s>(input: &'s str, remaining: &'s str) -> &'s str {
|
||||
assert!(is_slice_of(input, remaining));
|
||||
let mut offset = remaining.as_ptr() as usize - input.as_ptr() as usize;
|
||||
|
||||
Reference in New Issue
Block a user