Skip to content

Commit 496bf95

Browse files
Merge #27
27: Split out macro calls in item position r=matklad a=jonas-schievink This is needed in order to distinguish macro calls in expression position from calls in item position. Required for #7717. Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2 parents d0d1fc0 + 723a57a commit 496bf95

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-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.11.0"
4+
version = "1.12.0"
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Item =
9090
| ExternCrate
9191
| Fn
9292
| Impl
93-
| MacroCall
93+
| MacroItem
9494
| MacroRules
9595
| MacroDef
9696
| Module
@@ -101,6 +101,9 @@ Item =
101101
| Union
102102
| Use
103103

104+
MacroItem =
105+
MacroCall
106+
104107
MacroRules =
105108
Attr* Visibility?
106109
'macro_rules' '!' Name

0 commit comments

Comments
 (0)