It is true that the emacs mode doesn't handle the formatting of `/*`
comments correctly. The same is unforunately true of a number of edge
cases; I keep meaning to try my hand at improving the indentation
routine but I haven't gotten around to it.


Niko
     

On Mon, Aug 26, 2013 at 12:53:07PM -0700, Brian Anderson wrote:
> On 08/26/2013 07:07 AM, Niko Matsakis wrote:
> >I find I have surprisingly strong opinions about this. In particular,
> >I don't care for any of the options. Rather I prefer option D, which
> >looks like:
> >
> >     fn foo() {
> >         /*!
> >          * Summary
> >          *
> >          * Body text
> >          */
> >     }
> 
> I like this too in theory. There was some reason I never did it
> though - probably emacs mode was treating it incorrectly or
> something. That's the same reason I made all those awful-looking doc
> comments like
> 
> /** Foo
> 
> bar
> */
> 
> I tend to just do whatever is auto-formatted correctly.
> 
> _______________________________________________
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to