Remove unnecessary context from some util functions.
All checks were successful
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded

This commit is contained in:
Tom Alexander
2023-08-24 19:29:00 -04:00
parent e5224cda63
commit cf37bc4111
20 changed files with 38 additions and 55 deletions

View File

@@ -44,7 +44,7 @@ pub fn property_drawer<'r, 's>(
remaining,
(_start_of_line, _leading_whitespace, _open_tag, _trailing_whitespace, _line_ending),
) = tuple((
parser_with_context!(start_of_line)(context),
start_of_line,
space0,
tag_no_case(":PROPERTIES:"),
space0,
@@ -84,7 +84,7 @@ fn property_drawer_end<'r, 's>(
input: OrgSource<'s>,
) -> Res<OrgSource<'s>, OrgSource<'s>> {
recognize(tuple((
parser_with_context!(start_of_line)(context),
start_of_line,
space0,
tag_no_case(":end:"),
space0,
@@ -99,7 +99,7 @@ fn node_property<'r, 's>(
) -> Res<OrgSource<'s>, NodeProperty<'s>> {
let (remaining, (_start_of_line, _leading_whitespace, _open_colon, _name, _close_colon)) =
tuple((
parser_with_context!(start_of_line)(context),
start_of_line,
space0,
tag(":"),
parser_with_context!(node_property_name)(context),