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

Add support for captured arguments from macros #688

Merged
merged 1 commit into from
Apr 14, 2024
Merged

Conversation

udoprog
Copy link
Collaborator

@udoprog udoprog commented Apr 14, 2024

This adds support for capturing named variables from inside of a macro, like this:

let var = "World";
println!("Hello {var}");

@udoprog udoprog added enhancement New feature or request rust-likeness Issues related to making Rune more like Rust through feature parity. labels Apr 14, 2024
@udoprog udoprog force-pushed the format-macros-captured branch from 5e86995 to 20a3170 Compare April 14, 2024 17:43
@udoprog udoprog enabled auto-merge (rebase) April 14, 2024 17:48
@udoprog udoprog force-pushed the format-macros-captured branch from 20a3170 to 86c0fc8 Compare April 14, 2024 17:54
@udoprog udoprog disabled auto-merge April 14, 2024 17:54
@udoprog udoprog merged commit eca027b into main Apr 14, 2024
@udoprog udoprog deleted the format-macros-captured branch April 14, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rust-likeness Issues related to making Rune more like Rust through feature parity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant