Switch greater blocks to using name provided when building exit matcher instead of from context.

This commit is contained in:
Tom Alexander
2023-08-27 22:35:37 -04:00
parent b35d785e73
commit 20c17c40be
2 changed files with 17 additions and 22 deletions

View File

@@ -110,10 +110,9 @@ impl<'r, 's> ContextTree<'r, 's> {
pub enum ContextElement<'r, 's> {
/// Stores a parser that indicates that children should exit upon matching an exit matcher.
ExitMatcherNode(ExitMatcherNode<'r>),
Context(&'r str),
/// Stores the name of the greater block.
GreaterBlock(&'s str),
/// Stores the name of the current element to prevent directly nesting elements of the same type.
Context(&'r str),
/// Indicates if elements should consume the whitespace after them.
ConsumeTrailingWhitespace(bool),