From 82dfb0015760742e437f224f315f2d5534bdb926 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Thu, 24 Jan 2019 21:41:02 +0000 Subject: Apply suggestions from code review Co-Authored-By: DJMcNab <36049421+DJMcNab@users.noreply.github.com> --- crates/ra_syntax/src/grammar/expressions/atom.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ra_syntax/src/grammar/expressions/atom.rs b/crates/ra_syntax/src/grammar/expressions/atom.rs index 5072d2c49..23f9b05bb 100644 --- a/crates/ra_syntax/src/grammar/expressions/atom.rs +++ b/crates/ra_syntax/src/grammar/expressions/atom.rs @@ -1,5 +1,4 @@ use super::*; -use crate::grammar::paths::PATH_FIRST; // test expr_literals // fn foo() { @@ -37,7 +36,7 @@ pub(crate) fn literal(p: &mut Parser) -> Option { } // E.g. for after the break in `if break {}`, this should not match -pub(super) const ATOM_EXPR_FIRST: TokenSet = LITERAL_FIRST.union(PATH_FIRST).union(token_set![ +pub(super) const ATOM_EXPR_FIRST: TokenSet = LITERAL_FIRST.union(paths::PATH_FIRST).union(token_set![ L_PAREN, L_CURLY, L_BRACK, -- cgit v1.2.3