From f942d10e8010918c677b40f821e504d87f057ead Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sun, 20 Dec 2020 17:13:40 +0800 Subject: Use pattern_single instead of pattern in mbe pat --- crates/parser/src/grammar.rs | 2 +- crates/parser/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/parser') diff --git a/crates/parser/src/grammar.rs b/crates/parser/src/grammar.rs index 1a078f6b4..f08c8bab7 100644 --- a/crates/parser/src/grammar.rs +++ b/crates/parser/src/grammar.rs @@ -55,7 +55,7 @@ pub(crate) mod fragments { use super::*; pub(crate) use super::{ - expressions::block_expr, paths::type_path as path, patterns::pattern, types::type_, + expressions::block_expr, paths::type_path as path, patterns::pattern_single, types::type_, }; pub(crate) fn expr(p: &mut Parser) { diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs index ab8e4c70e..811e740f9 100644 --- a/crates/parser/src/lib.rs +++ b/crates/parser/src/lib.rs @@ -112,7 +112,7 @@ pub fn parse_fragment( FragmentKind::Path => grammar::fragments::path, FragmentKind::Expr => grammar::fragments::expr, FragmentKind::Type => grammar::fragments::type_, - FragmentKind::Pattern => grammar::fragments::pattern, + FragmentKind::Pattern => grammar::fragments::pattern_single, FragmentKind::Item => grammar::fragments::item, FragmentKind::Block => grammar::fragments::block_expr, FragmentKind::Visibility => grammar::fragments::opt_visibility, -- cgit v1.2.3