Skip to content

Commit 6cf7007

Browse files
Merge #29
29: Macro Statements should be also an Expr r=jonas-schievink a=edwin0cheng e.g: ```rust macro_rules! identity { ($($es:tt)*) => { $($es)* } } fn main() -> usize { identity! { let _ = (); } // statements identity! { let _ = (); 0 } // expr, return 0 } ``` Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2 parents ffc3dc9 + 49294fe commit 6cf7007

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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.12.1"
4+
version = "1.12.2"
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ Expr =
336336
| Literal
337337
| LoopExpr
338338
| MacroCall
339+
| MacroStmts
339340
| MatchExpr
340341
| MethodCallExpr
341342
| ParenExpr

0 commit comments

Comments
 (0)