Align grammar for record patterns and literals

The grammar now looks like this

   [name_ref :] pat
This commit is contained in:
Aleksey Kladov 2020-04-11 23:33:17 +02:00
parent 6b49e774e2
commit 5e5eb6a108
18 changed files with 145 additions and 90 deletions

View file

@ -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![')'] }