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

Support new macro syntax #17

Open
Folyd opened this issue Mar 25, 2023 · 1 comment
Open

Support new macro syntax #17

Folyd opened this issue Mar 25, 2023 · 1 comment

Comments

@Folyd
Copy link
Contributor

Folyd commented Mar 25, 2023

Rust has a new macro syntax, for example std::pin::pin.

pub macro pin($value:expr $(,)?) {
    ...
}

Here is the error log for this pin!() macro:

Uncaught (in promise) macro_railroad parse failed: expected `macro_rules`
@lukaslueg
Copy link
Owner

declarative macros 2.0 are not yet stable (rust-lang/rust#39412), although stdlib gets to use them (as it does with all unstable features). Let's wait for 39412 to settle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants