Skip to content

Commit 19176cd

Browse files
Add syntax elements for if let match guards
1 parent 0602315 commit 19176cd

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.14.2"
4+
version = "1.14.3"
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
@@ -488,7 +488,7 @@ MatchArm =
488488
Attr* Pat guard:MatchGuard? '=>' Expr ','?
489489

490490
MatchGuard =
491-
'if' Expr
491+
'if' ('let' Pat '=')? Expr
492492

493493
ReturnExpr =
494494
Attr* 'return' Expr?

0 commit comments

Comments
 (0)