jsx / jsx-mode.el

Emacs major mode for JSX, an altJS
72 stars 13 forks source link

jsx-mode.el doesn't indent multi-line comments properly. #1

Closed nyuichi closed 12 years ago

nyuichi commented 12 years ago

When indenting jsx source codes that have multi-line comments such as below one,

class Foo {
/* Comment
 * Comment
 */
    function bar(a : Bar) : void {
    }
}

I want

class Foo {
    /* Comment
     * Comment
     */
    function bar(a : Bar) : void {
    }
}

but I get

class Foo {
    /* Comment
 * Comment
 */
    function bar(a : Bar) : void {
    }
}

This behavior doesn't look proper and is very annoying because I have to insert spaces manually before the comments every time.

abicky commented 12 years ago

Thank you for your report. I fixed this bug in version 0.1.4.