We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
let ... else
1 parent 26ce02d commit 7fdbd98Copy full SHA for 7fdbd98
src/tools/rust-analyzer/lib/ungrammar/Cargo.toml
@@ -1,7 +1,7 @@
1
[package]
2
name = "ungrammar"
3
description = "A DSL for describing concrete syntax trees"
4
-version = "1.14.6"
+version = "1.14.7"
5
license = "MIT OR Apache-2.0"
6
repository = "https://github.com/matklad/ungrammar"
7
edition = "2018"
src/tools/rust-analyzer/lib/ungrammar/rust.ungram
@@ -315,7 +315,9 @@ Stmt =
315
316
LetStmt =
317
Attr* 'let' Pat (':' Type)?
318
- '=' initializer:Expr ';'
+ '=' initializer:Expr
319
+ ('else' else_branch:BlockExpr)?
320
+ ';'
321
322
ExprStmt =
323
Expr ';'?
0 commit comments