Skip to content

Commit 074b255

Browse files
Merge #38
38: Add syntax elements for `if let` match guards r=jonas-schievink a=jonas-schievink For #9876 bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2 parents 0602315 + 19176cd commit 074b255

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)