-
Notifications
You must be signed in to change notification settings - Fork 181
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
emacs mode indentation is wrong when function return -> is on its own line #8
Comments
Okay, the problem is with pub fn test(...
|...) -> Test {
^ Point is here
} it moves to pub fn test|(...
^ Point is here now
...) -> Test {
} However, when run with the ->, goes from pub fn test(...)
|-> Test {
^ Point is here
} to pub fn test(...)
|-> Test {
^ Point is here
} As you can see, the point doesn't actually move at all. I'm working on some fixes. The reason for this is that there is a check for (while (> (rust-paren-level) current-level) Which is obviously only true when you are within the parentheses of the argument list. |
🐎 If you fix this bug, you'll be my official rust-mode "Hero of the Day". :) |
I have fixed this bug, but the pull request has not been accepted :P On Thu, Apr 16, 2015 at 4:25 PM Niko Matsakis [email protected]
|
Check out #52 |
Oh, right. Making sure you read this, @nikomatsakis :P |
Issue by nikomatsakis
Wednesday Apr 16, 2014 at 19:39 GMT
For earlier discussion, see rust-lang/rust#13566
This issue was labelled with: A-tools in the Rust repository
The following code indents as shown here, which is weird:
I expect it to be:
The text was updated successfully, but these errors were encountered: