mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-27 16:07:46 +00:00
Add support for let ... else
This commit is contained in:
parent
c675f49a46
commit
2e66cedc8b
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "ungrammar"
|
||||
description = "A DSL for describing concrete syntax trees"
|
||||
version = "1.14.6"
|
||||
version = "1.14.7"
|
||||
license = "MIT OR Apache-2.0"
|
||||
repository = "https://github.com/matklad/ungrammar"
|
||||
edition = "2018"
|
||||
|
||||
@ -315,7 +315,9 @@ Stmt =
|
||||
|
||||
LetStmt =
|
||||
Attr* 'let' Pat (':' Type)?
|
||||
'=' initializer:Expr ';'
|
||||
'=' initializer:Expr
|
||||
('else' else_branch:BlockExpr)?
|
||||
';'
|
||||
|
||||
ExprStmt =
|
||||
Expr ';'?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user