Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move towards upstream macro_rules! model #14

Merged
merged 1 commit into from
Dec 14, 2020
Merged

Move towards upstream macro_rules! model #14

merged 1 commit into from
Dec 14, 2020

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