From 6b25f640a6ad8e2322b5cc0664223b742459336d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 17:57:58 +0200 Subject: [PATCH] Finalize Enum grammar --- xtask/src/codegen/rust.ungram | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 48d4f4b4a04..b653c14a7fc 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -103,7 +103,7 @@ Enum = VariantList VariantList = - '{' Variant* '}' + '{' (Variant (',' Variant)* ','?)? '}' Variant = Attr* Visibility? Name FieldList ('=' Expr)?