Skip to content

Commit

Permalink
Remove unncessary check for macro call
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Mar 8, 2024
1 parent 00a0125 commit a838e44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/parser/src/grammar/items.rs
Expand Up @@ -70,8 +70,7 @@ pub(super) fn item_or_macro(p: &mut Parser<'_>, stop_on_r_curly: bool) {
// macro_rules! {};
// macro_rules! ()
// macro_rules! []
let no_ident = p.at_contextual_kw(T![macro_rules]) && p.nth_at(1, BANG) && !p.nth_at(2, IDENT);
if paths::is_use_path_start(p) || no_ident {
if paths::is_use_path_start(p) {
macro_call(p, m);
return;
}
Expand Down

0 comments on commit a838e44

Please sign in to comment.