Unnamed repository; edit this file 'description' to name the repository.
Add syntax elements for `if let` match guards
Jonas Schievink 2021-08-13
parent d637a33 · commit 22b3835
-rw-r--r--lib/ungrammar/Cargo.toml2
-rw-r--r--lib/ungrammar/rust.ungram2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ungrammar/Cargo.toml b/lib/ungrammar/Cargo.toml
index 99b020548b..067b9b302f 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.14.2"
+version = "1.14.3"
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 2ac52ddcb5..6bb123a3e2 100644
--- a/lib/ungrammar/rust.ungram
+++ b/lib/ungrammar/rust.ungram
@@ -488,7 +488,7 @@ MatchArm =
Attr* Pat guard:MatchGuard? '=>' Expr ','?
MatchGuard =
- 'if' Expr
+ 'if' ('let' Pat '=')? Expr
ReturnExpr =
Attr* 'return' Expr?