-
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
Adding a line break after a Trait in a template argument list breaks emacs-mode indentation #10
Comments
The second issue is one with mod test |2| {
fn test|3|<A,|1|
V>() { The cursor goes from With issue 1, |
To make I've been trying to get it to do just that recognizing angle brackets but not mistaking other Unfortunately at this point there are still a few cases where it gets the angle bracket identification wrong. The other problem with the patch as I currently have it is performance--on my machine, it makes emacs grind to a halt on even moderately large source files (at 7637 lines, |
Is this related to the following indentation problem, or should I make a new issue:
|
Issue by gsingh93
Friday Aug 22, 2014 at 01:25 GMT
For earlier discussion, see rust-lang/rust#16665
This issue was labelled with: A-infrastructure in the Rust repository
I think this is a somewhat serious bug with emacs-mode, since I can't use the tab key for indentation inside a function block in many cases.
My code ends up with a long list of traits with bounds in the template argument list, and according to the style guide, I can wrap between traits. However, if I wrap between traits, identation is broken for the function. Consider the following example,
As you can see, hitting tab inside the function idents too much. I should mention that I aligned the second template argument to match up with the first, as hitting tab there doesn't work either.
The text was updated successfully, but these errors were encountered: