bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8576: 23.2; js-mode doesn't support multi-line variable declarations


From: Stefan Monnier
Subject: bug#8576: 23.2; js-mode doesn't support multi-line variable declarations
Date: Tue, 17 Jul 2012 05:50:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

>>> const a = 5,
>>>     b = 6;
>> Yup, that'd be a bug.
> Depends, IMO. Do we want to indent on the column, or by the configured
> indentation level?

The user already has the choice (without even a config-var) by choosing
between

    const a = 5,
          b = 6;
and
    const
        a = 5,
        b = 6;

> Should this be configurable?

I don't think that's needed.

> But I'd rather get this patch in in the simple form first, and enhance the
> behaviour with another one.

Agreed,


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]