mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Align grammar for record patterns and literals
The grammar now looks like this [name_ref :] pat
This commit is contained in:
parent
6b49e774e2
commit
5e5eb6a108
18 changed files with 145 additions and 90 deletions
|
@ -511,7 +511,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
T![..],
|
||||
T!['}']
|
||||
}
|
||||
struct RecordFieldPat: AttrsOwner, NameOwner { T![:], Pat }
|
||||
struct RecordFieldPat: AttrsOwner { NameRef, T![:], Pat }
|
||||
|
||||
struct TupleStructPat { Path, T!['('], args: [Pat], T![')'] }
|
||||
struct TuplePat { T!['('], args: [Pat], T![')'] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue