Change lesser block exit class to Alpha.
All checks were successful
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded

When an example block is nested inside a list, this change allows for the contents of the example block to be on lines less indented than before.
This commit is contained in:
Tom Alexander
2023-09-06 14:14:02 -04:00
parent 728a79f9a4
commit 84edd10864

View File

@@ -46,7 +46,7 @@ pub fn verse_block<'b, 'g, 'r, 's>(
ContextElement::ConsumeTrailingWhitespace(true),
ContextElement::Context("lesser block"),
ContextElement::ExitMatcherNode(ExitMatcherNode {
class: ExitClass::Beta,
class: ExitClass::Alpha,
exit_matcher: &lesser_block_end_specialized,
}),
];
@@ -101,7 +101,7 @@ pub fn comment_block<'b, 'g, 'r, 's>(
ContextElement::ConsumeTrailingWhitespace(true),
ContextElement::Context("lesser block"),
ContextElement::ExitMatcherNode(ExitMatcherNode {
class: ExitClass::Beta,
class: ExitClass::Alpha,
exit_matcher: &lesser_block_end_specialized,
}),
];
@@ -141,7 +141,7 @@ pub fn example_block<'b, 'g, 'r, 's>(
ContextElement::ConsumeTrailingWhitespace(true),
ContextElement::Context("lesser block"),
ContextElement::ExitMatcherNode(ExitMatcherNode {
class: ExitClass::Beta,
class: ExitClass::Alpha,
exit_matcher: &lesser_block_end_specialized,
}),
];
@@ -182,7 +182,7 @@ pub fn export_block<'b, 'g, 'r, 's>(
ContextElement::ConsumeTrailingWhitespace(true),
ContextElement::Context("lesser block"),
ContextElement::ExitMatcherNode(ExitMatcherNode {
class: ExitClass::Beta,
class: ExitClass::Alpha,
exit_matcher: &lesser_block_end_specialized,
}),
];