Remove unnecessary context from some util functions.
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user