diff --git a/zap/src/parser/grammar.lalrpop b/zap/src/parser/grammar.lalrpop index 0bfd652e..6fdb9152 100644 --- a/zap/src/parser/grammar.lalrpop +++ b/zap/src/parser/grammar.lalrpop @@ -103,7 +103,7 @@ Enum: SyntaxEnum<'input> = { } EnumKind: SyntaxEnumKind<'input> = { - "{" > "}" => SyntaxEnumKind::Unit(enumerators), + "{" > "}" => SyntaxEnumKind::Unit(enumerators), "{" )>> "}" => SyntaxEnumKind::Tagged { tag, variants }, } diff --git a/zap/src/parser/syntax_tree.rs b/zap/src/parser/syntax_tree.rs index 00850926..17bdc426 100644 --- a/zap/src/parser/syntax_tree.rs +++ b/zap/src/parser/syntax_tree.rs @@ -145,7 +145,7 @@ impl<'src> Spanned for SyntaxEnum<'src> { #[derive(Debug, Clone, PartialEq)] pub enum SyntaxEnumKind<'src> { - Unit(Vec>), + Unit(Vec>), Tagged { tag: SyntaxStrLit<'src>,