Apply suggestions from code review

Co-Authored-By: DJMcNab <36049421+DJMcNab@users.noreply.github.com>
This commit is contained in:
Daniel McNab 2019-01-24 21:41:02 +00:00 committed by GitHub
parent f0e5a314b0
commit 82dfb00157
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<CompletedMarker> {
}
// 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,