Allow affiliating keywords with regular keywords.
This commit is contained in:
@@ -87,6 +87,7 @@ fn _element<'r, 's>(
|
||||
map(fixed_width_area_matcher, Element::FixedWidthArea),
|
||||
map(horizontal_rule_matcher, Element::HorizontalRule),
|
||||
map(latex_environment_matcher, Element::LatexEnvironment),
|
||||
map(keyword_matcher, Element::Keyword),
|
||||
))(remaining)
|
||||
{
|
||||
the_ok @ Ok(_) => the_ok,
|
||||
@@ -96,12 +97,12 @@ fn _element<'r, 's>(
|
||||
the_ok @ Ok(_) => the_ok,
|
||||
Err(_) => {
|
||||
affiliated_keywords.clear();
|
||||
map(keyword_matcher, Element::Keyword)(input)
|
||||
map(affiliated_keyword_matcher, Element::Keyword)(input)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
affiliated_keywords.clear();
|
||||
map(keyword_matcher, Element::Keyword)(input)
|
||||
map(affiliated_keyword_matcher, Element::Keyword)(input)
|
||||
}
|
||||
}
|
||||
}?;
|
||||
|
||||
Reference in New Issue
Block a user