Skip to content
This repository was archived by the owner on Nov 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "ungrammar"
description = "A DSL for describing concrete syntax trees"
version = "1.14.2"
version = "1.14.3"
license = "MIT OR Apache-2.0"
repository = "https://github.com/matklad/ungrammar"
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
Expand Down
2 changes: 1 addition & 1 deletion rust.ungram
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ MatchArm =
Attr* Pat guard:MatchGuard? '=>' Expr ','?

MatchGuard =
'if' Expr
'if' ('let' Pat '=')? Expr
Comment on lines 490 to +491
Copy link
Member

@Veykril Veykril Aug 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should define MatchGuard in terms of Condition now since its basically the same, that is:

MatchGuard =
  'if' Condition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that could work. One thing I noticed is that the parser for condition couldn't be reused since it forbids struct literals.


ReturnExpr =
Attr* 'return' Expr?
Expand Down