GNU bug report logs - #24854
[js-mode] Wrong indentation in line after regexp literal

Previous Next

Package: emacs;

Reported by: James Yang <jamesyang999 <at> gmail.com>

Date: Tue, 1 Nov 2016 23:42:02 UTC

Severity: normal

Found in versions 25.1, 23.4

Fixed in version 25.2

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #21 received at 24854 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: James Yang <jamesyang999 <at> gmail.com>, 24854 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#24854: 25.1; indent error with regexp
Date: Tue, 15 Nov 2016 02:04:45 +0200
[Message part 1 (text/plain, inline)]
On 02.11.2016 01:30, James Yang wrote:

> var re = /some value/
>
>  str.match(re)
>
>
> 4. You can see line 2 will have indent, which should not.
>
>
> I also report it to this url: https://github.com/mooz/js2-mode/issues/382

Thanks for the report. The patch is attached.

Eli, would you allow this for 25.2? It's not a regression, but the fix 
is simple.

[js-indent-after-regexp-without-semi.diff (text/x-diff, attachment)]

This bug report was last modified 8 years and 186 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.