Skip to content

Conversation

jonas-schievink
Copy link
Contributor

Upstream Rust has long since considered macro_rules! to be an item declaration instead of a macro invocation. Additionally, macro invocations cannot have a "name" between the path::to::macro! and the argument token tree.

This PR moves ungrammar closer to that model, and also allows visibility on MacroRules items, which has been proposed in rust-lang/rust#78166.

@jonas-schievink jonas-schievink merged commit 0b1776c into rust-analyzer:master Dec 14, 2020
@jonas-schievink jonas-schievink deleted the macros branch December 14, 2020 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant