From ab5deb78117693d776723bc0144e7b34e6f782d1 Mon Sep 17 00:00:00 2001 From: Marcus Klaas de Vries Date: Wed, 16 Jan 2019 19:35:27 +0100 Subject: Create struct patterns up to the hir level --- crates/ra_syntax/src/grammar.ron | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crates/ra_syntax/src/grammar.ron') diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index b524c8aaf..33080f664 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron @@ -490,8 +490,8 @@ Grammar( "RefPat": ( options: [ "Pat" ]), "BindPat": ( traits: ["NameOwner"] ), "PlaceholderPat": (), - "PathPat": ( options: ["Path"] ), - "StructPat": (), + "PathPat": ( options: [ "Path" ] ), + "StructPat": ( options: ["FieldPatList", "Path"] ), "FieldPatList": (), "TupleStructPat": ( options: ["Path"], @@ -508,7 +508,6 @@ Grammar( "PlaceholderPat", "PathPat", "StructPat", - "FieldPatList", "TupleStructPat", "TuplePat", "SlicePat", -- cgit v1.2.3