Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/red-blox/zap
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink committed Dec 27, 2023
2 parents 8667444 + d92175e commit 2df5633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zap/src/parser/grammar.lalrpop
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Enum: SyntaxEnum<'input> = {
}

EnumKind: SyntaxEnumKind<'input> = {
"{" <enumerators:Comma<Identifier>> "}" => SyntaxEnumKind::Unit(enumerators),
"{" <enumerators:Comma<StrLit>> "}" => SyntaxEnumKind::Unit(enumerators),

<tag:StrLit> "{" <variants:Comma<(<Identifier> <Struct>)>> "}" => SyntaxEnumKind::Tagged { tag, variants },
}
Expand Down
2 changes: 1 addition & 1 deletion zap/src/parser/syntax_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl<'src> Spanned for SyntaxEnum<'src> {

#[derive(Debug, Clone, PartialEq)]
pub enum SyntaxEnumKind<'src> {
Unit(Vec<SyntaxIdentifier<'src>>),
Unit(Vec<SyntaxStrLit<'src>>),

Tagged {
tag: SyntaxStrLit<'src>,
Expand Down

0 comments on commit 2df5633

Please sign in to comment.