diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 16:57:58 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 16:57:58 +0100 |
commit | 6b25f640a6ad8e2322b5cc0664223b742459336d (patch) | |
tree | faab32905acc518ed5c58bef8e039c0e52702c09 /xtask/src | |
parent | 1766aae145c6925a33e427f2fe6ef2a56c301665 (diff) |
Finalize Enum grammar
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 48d4f4b4a..b653c14a7 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -103,7 +103,7 @@ Enum = | |||
103 | VariantList | 103 | VariantList |
104 | 104 | ||
105 | VariantList = | 105 | VariantList = |
106 | '{' Variant* '}' | 106 | '{' (Variant (',' Variant)* ','?)? '}' |
107 | 107 | ||
108 | Variant = | 108 | Variant = |
109 | Attr* Visibility? Name FieldList ('=' Expr)? | 109 | Attr* Visibility? Name FieldList ('=' Expr)? |