Unnamed repository; edit this file 'description' to name the repository.
Merge rust-analyzer/ungrammar#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 <[email protected]>
bors[bot] 2021-03-15
parent f74bfe0 · parent 1362a27 · commit 6cc1ad0
-rw-r--r--lib/ungrammar/Cargo.toml2
-rw-r--r--lib/ungrammar/rust.ungram1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/ungrammar/Cargo.toml b/lib/ungrammar/Cargo.toml
index ec3b5dd7a5..002a38651b 100644
--- a/lib/ungrammar/Cargo.toml
+++ b/lib/ungrammar/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "ungrammar"
description = "A DSL for describing concrete syntax trees"
-version = "1.12.1"
+version = "1.12.2"
license = "MIT OR Apache-2.0"
repository = "https://github.com/matklad/ungrammar"
authors = ["Aleksey Kladov <[email protected]>"]
diff --git a/lib/ungrammar/rust.ungram b/lib/ungrammar/rust.ungram
index 3d2e189edf..e7542b182a 100644
--- a/lib/ungrammar/rust.ungram
+++ b/lib/ungrammar/rust.ungram
@@ -336,6 +336,7 @@ Expr =
| Literal
| LoopExpr
| MacroCall
+| MacroStmts
| MatchExpr
| MethodCallExpr
| ParenExpr