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: Daniel Colascione
Subject: bug#8576: 23.2; js-mode doesn't support multi-line variable declarations
Date: Wed, 15 Feb 2012 11:25:43 -0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0

On 2/15/2012 10:58 AM, Stefan Monnier wrote:
>>> Also, the existing highlighting has no ill effects: the
>>> second declaration is just interpreted as an assignment, and the worst
>>> part is a lack of font-lock-variable-name-face, not syntactic incoherence.
>> True, but it's still very irritating to have Emacs indent it incorrectly
>> every time you insert/edit such a statement and having to manually fix
> 
> Agreed: it's OK for the highlighting to be a bit off, but indentation
> is more irritating.  Luckily, we can afford to work harder during
> indentation than during highlighting, so it should be fixable.

I'll work on a fix, at least for indentation. The trouble is that the
fix involves a potentially unbounded amount of backward parsing. We'll
see how it goes.

Stefan, is this something that should be in 24.1?






reply via email to

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