Unnamed repository; edit this file 'description' to name the repository.
add Attr to RestPat
zhoufan 2021-10-03
parent fca3725 · commit c284772
-rw-r--r--lib/ungrammar/Cargo.toml2
-rw-r--r--lib/ungrammar/rust.ungram4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/ungrammar/Cargo.toml b/lib/ungrammar/Cargo.toml
index af7ec004fd..25a10b3a54 100644
--- a/lib/ungrammar/Cargo.toml
+++ b/lib/ungrammar/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "ungrammar"
description = "A DSL for describing concrete syntax trees"
-version = "1.14.5"
+version = "1.14.6"
license = "MIT OR Apache-2.0"
repository = "https://github.com/matklad/ungrammar"
edition = "2018"
diff --git a/lib/ungrammar/rust.ungram b/lib/ungrammar/rust.ungram
index 938843ffce..81323d27ca 100644
--- a/lib/ungrammar/rust.ungram
+++ b/lib/ungrammar/rust.ungram
@@ -618,7 +618,7 @@ RecordPat =
RecordPatFieldList =
'{'
fields:(RecordPatField (',' RecordPatField)* ','?)?
- '..'?
+ RestPat?
'}'
RecordPatField =
@@ -646,7 +646,7 @@ BoxPat =
'box' Pat
RestPat =
- '..'
+ Attr* '..'
MacroPat =
MacroCall