Support parsing affiliated keywords as keywords.
This commit is contained in:
parent
5ae19e455d
commit
e6e3783ec6
@ -209,6 +209,7 @@ fn _element<'b, 'g, 'r, 's>(
|
|||||||
Element::BabelCall
|
Element::BabelCall
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Keyword with affiliated keywords
|
||||||
ak_element!(
|
ak_element!(
|
||||||
keyword,
|
keyword,
|
||||||
&mut affiliated_keywords,
|
&mut affiliated_keywords,
|
||||||
@ -218,6 +219,16 @@ fn _element<'b, 'g, 'r, 's>(
|
|||||||
Element::Keyword
|
Element::Keyword
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Keyword without affiliated keywords
|
||||||
|
ak_element!(
|
||||||
|
keyword,
|
||||||
|
std::iter::empty(),
|
||||||
|
input,
|
||||||
|
context,
|
||||||
|
input,
|
||||||
|
Element::Keyword
|
||||||
|
);
|
||||||
|
|
||||||
if can_be_paragraph {
|
if can_be_paragraph {
|
||||||
// Paragraph with affiliated keyword
|
// Paragraph with affiliated keyword
|
||||||
ak_element!(
|
ak_element!(
|
||||||
|
Loading…
Reference in New Issue
Block a user