Apply suggestions from code review
Co-Authored-By: DJMcNab <36049421+DJMcNab@users.noreply.github.com>
This commit is contained in:
parent
f0e5a314b0
commit
82dfb00157
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user