-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Description
I'm using rust-mode in emacs 24.3.
Here is a macro from the Macros guide:
macro_rules! early_return(
($inp:expr $sp:ident) => ( // invoke it like `(input_5 SpecialE)`
match $inp {
$sp(x) => { return x; }
_ => {}
}
);
)
If I select all and hit tab, this is how it indents it:
macro_rules! try_option_or_fail(
($e:expr) => (
match $e {
Some(x) => x,
None => fail!("Expected Some, got None", $e)
}
);
)
Metadata
Metadata
Assignees
Labels
No labels