From 8222a1fddfe73dab5e00437efeffa7d95db0b6be Mon Sep 17 00:00:00 2001 From: Evgenii P Date: Tue, 13 Aug 2019 22:36:01 +0700 Subject: Fix is_path_start to accept T![<], fix is_path_start usages --- crates/ra_parser/src/grammar/expressions/atom.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_parser/src/grammar/expressions') diff --git a/crates/ra_parser/src/grammar/expressions/atom.rs b/crates/ra_parser/src/grammar/expressions/atom.rs index d98953a7e..401c738a3 100644 --- a/crates/ra_parser/src/grammar/expressions/atom.rs +++ b/crates/ra_parser/src/grammar/expressions/atom.rs @@ -62,7 +62,7 @@ pub(super) fn atom_expr(p: &mut Parser, r: Restrictions) -> Option<(CompletedMar if let Some(m) = literal(p) { return Some((m, BlockLike::NotBlock)); } - if paths::is_path_start(p) || p.at(T![<]) { + if paths::is_path_start(p) { return Some(path_expr(p, r)); } let la = p.nth(1); -- cgit v1.2.3