Skip to content

Commit 2497896

Browse files
Merge #43
43: Make `LetElse` its own node r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2 parents 2cd7d33 + f1db2ca commit 2497896

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-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.7"
4+
version = "1.14.8"
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/matklad/ungrammar"
77
edition = "2018"

rust.ungram

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,12 @@ Stmt =
316316
LetStmt =
317317
Attr* 'let' Pat (':' Type)?
318318
'=' initializer:Expr
319-
('else' else_branch:BlockExpr)?
319+
LetElse?
320320
';'
321321

322+
LetElse =
323+
'else' BlockExpr
324+
322325
ExprStmt =
323326
Expr ';'?
324327

0 commit comments

Comments
 (0)