Skip to content

Commit 6b25f64

Browse files
committed
Finalize Enum grammar
1 parent 1766aae commit 6b25f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/codegen/rust.ungram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Enum =
103103
VariantList
104104

105105
VariantList =
106-
'{' Variant* '}'
106+
'{' (Variant (',' Variant)* ','?)? '}'
107107

108108
Variant =
109109
Attr* Visibility? Name FieldList ('=' Expr)?

0 commit comments

Comments
 (0)