Skip to content

Commit 06abbb8

Browse files
bors[bot]xffxff
andauthored
Merge #41
41: add Attr to RestPat r=XFFXFF a=XFFXFF Try to fix #8610 Related pr in rust-analyzer: #10420 Co-authored-by: zhoufan <1247714429@qq.com>
2 parents 7eb9cab + aee806c commit 06abbb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

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

rust.ungram

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ RecordPat =
618618
RecordPatFieldList =
619619
'{'
620620
fields:(RecordPatField (',' RecordPatField)* ','?)?
621-
'..'?
621+
RestPat?
622622
'}'
623623

624624
RecordPatField =
@@ -646,7 +646,7 @@ BoxPat =
646646
'box' Pat
647647

648648
RestPat =
649-
'..'
649+
Attr* '..'
650650

651651
MacroPat =
652652
MacroCall

0 commit comments

Comments
 (0)