-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Macro indentation issue with rust-mode #13937
Comments
I was just looking at the code for rust-mode. Can we just use the same rule we use |
I just tried this out by changing the code starting at line 113.
It properly handles the case in the example. |
FWIW you can work around this in the meantime by using macro_rules! early_return {
($inp:expr $sp:ident) => { // invoke it like `(input_5 SpecialE)`
match $inp {
$sp(x) => { return x; }
_ => {}
}
};
} Emacs should indent that properly. |
@gsingh93 , please let me know if @shepmaster is wrong, but yes, this would seem to be fixed. |
remove recursive 'Display' implementations closes rust-lang#13920 `@lnicola` is this the solution you were looking for? having explicitly unimplemented methods seems preferable to apparently implemented methods that can't be called
I'm using rust-mode in emacs 24.3.
Here is a macro from the Macros guide:
If I select all and hit tab, this is how it indents it:
The text was updated successfully, but these errors were encountered: