Skip to content

Commit 26ce02d

Browse files
bors[bot]xffxff
andauthored
41: add Attr to RestPat r=XFFXFF a=XFFXFF Try to fix rust-lang/rust-analyzer#8610 Related pr in rust-analyzer: rust-lang/rust-analyzer#10420 Co-authored-by: zhoufan <1247714429@qq.com>
2 parents 2cabc6c + d60265b commit 26ce02d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tools/rust-analyzer/lib/ungrammar/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"

src/tools/rust-analyzer/lib/ungrammar/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)