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


View this message in rfc822 format

From: npostavs <at> users.sourceforge.net
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 24854 <at> debbugs.gnu.org
Subject: bug#24854: 25.1; indent error with regexp
Date: Tue, 08 Nov 2016 19:35:44 -0500
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> On 02.11.2016 00:30, James Yang wrote:
>
>  var re = /some value/
>
>  str.match(re)
>
> Can't reproduce with 
>
> js-mode of GNU Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-10-11

The OP has an extra blank lines, try

    var re = /some value/
    str.match(re)




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

Previous Next


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