Skip to content

Commit d41a411

Browse files
Fixup MacroRules to work with xtask codegen
1 parent fab6162 commit d41a411

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ungrammar"
33
description = "A DSL for describing concrete syntax trees"
4-
version = "1.2.0"
4+
version = "1.2.1"
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/matklad/ungrammar"
77
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]

rust.ungram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Item =
101101
MacroRules =
102102
Attr* Visibility?
103103
'macro_rules' '!' Name
104-
'{' MacroArm (';' MacroArm)* ';'? '}'
104+
'{' (MacroArm (';' MacroArm)* ';'?)? '}'
105105

106106
MacroArm =
107107
TokenTree '=>' TokenTree

0 commit comments

Comments
 (0)