Allow REST despite no TIME.
This commit is contained in:
parent
2b5df83956
commit
94401dcf00
@ -129,6 +129,13 @@ fn active_timestamp<'b, 'g, 'r, 's>(
|
||||
space1,
|
||||
parser_with_context!(time(true))(&time_context),
|
||||
)))(remaining)?;
|
||||
let remaining = if time.is_none() {
|
||||
// Upstream org-mode accepts malformed timestamps. For example '<2016-02-14 Sun ++y>'.
|
||||
let (remain, _) = opt(parser_with_context!(time_rest)(&time_context))(remaining)?;
|
||||
remain
|
||||
} else {
|
||||
remaining
|
||||
};
|
||||
let (remaining, repeater) =
|
||||
opt(tuple((space1, parser_with_context!(repeater)(context))))(remaining)?;
|
||||
let (remaining, warning_delay) = opt(tuple((
|
||||
@ -173,6 +180,13 @@ fn inactive_timestamp<'b, 'g, 'r, 's>(
|
||||
space1,
|
||||
parser_with_context!(time(true))(&time_context),
|
||||
)))(remaining)?;
|
||||
let remaining = if time.is_none() {
|
||||
// Upstream org-mode accepts malformed timestamps. For example '<2016-02-14 Sun ++y>'.
|
||||
let (remain, _) = opt(parser_with_context!(time_rest)(&time_context))(remaining)?;
|
||||
remain
|
||||
} else {
|
||||
remaining
|
||||
};
|
||||
let (remaining, repeater) =
|
||||
opt(tuple((space1, parser_with_context!(repeater)(context))))(remaining)?;
|
||||
let (remaining, warning_delay) = opt(tuple((
|
||||
|
Loading…
Reference in New Issue
Block a user