Compare commits
No commits in common. "eb9c582fa5cc92aa035da7ec8767ad6a20f45ca0" and "db3086743cafa731b5175eff0879377fcff103ab" have entirely different histories.
eb9c582fa5
...
db3086743c
@ -1 +0,0 @@
|
|||||||
foo ==>bar=.
|
|
@ -10,7 +10,6 @@ use nom::multi::separated_list0;
|
|||||||
|
|
||||||
use super::org_source::OrgSource;
|
use super::org_source::OrgSource;
|
||||||
use super::Context;
|
use super::Context;
|
||||||
use crate::error::CustomError;
|
|
||||||
use crate::error::Res;
|
use crate::error::Res;
|
||||||
use crate::parser::object::OrgMacro;
|
use crate::parser::object::OrgMacro;
|
||||||
use crate::parser::parser_with_context::parser_with_context;
|
use crate::parser::parser_with_context::parser_with_context;
|
||||||
@ -87,11 +86,6 @@ fn org_macro_arg<'r, 's>(
|
|||||||
}
|
}
|
||||||
if next_char == '\\' {
|
if next_char == '\\' {
|
||||||
escaping = true;
|
escaping = true;
|
||||||
if peek(tag::<_, _, CustomError<_>>(")"))(new_remaining).is_ok() {
|
|
||||||
// Special case for backslash at the end of a macro
|
|
||||||
remaining = new_remaining;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if next_char == ',' || next_char == ')' {
|
if next_char == ',' || next_char == ')' {
|
||||||
break;
|
break;
|
||||||
|
@ -277,7 +277,7 @@ pub fn pre<'r, 's>(_context: Context<'r, 's>, input: OrgSource<'s>) -> Res<OrgSo
|
|||||||
|
|
||||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||||
pub fn post<'r, 's>(_context: Context<'r, 's>, input: OrgSource<'s>) -> Res<OrgSource<'s>, ()> {
|
pub fn post<'r, 's>(_context: Context<'r, 's>, input: OrgSource<'s>) -> Res<OrgSource<'s>, ()> {
|
||||||
let (remaining, _) = alt((recognize(one_of(" \r\n\t-.,;:!?')}[\"")), line_ending))(input)?;
|
let (remaining, _) = alt((recognize(one_of(" \r\n\t-.,;:!?')}[\">")), line_ending))(input)?;
|
||||||
Ok((remaining, ()))
|
Ok((remaining, ()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user