GNU bug report logs - #9151
js-mode indentation doesn't recognize brace-less function expressions

Previous Next

Package: emacs;

Reported by: Štěpán Němec <stepnem <at> gmail.com>

Date: Fri, 22 Jul 2011 19:34:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Knut Olav Bøhmer <bohmer <at> gmail.com>
To: 9151 <at> debbugs.gnu.org
Subject: bug#9151: js-mode indentation doesn't recognize brace-less function expressions
Date: Wed, 21 Aug 2019 09:54:18 +0200
[Message part 1 (text/plain, inline)]
This bug is probably more important to day then 8 years ago because of the
widely used  arrow function with concise body syntax as documented here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#Function_body

Right:
const something = () =>
      indent_like_this();

Wrong:
const something = () =>
not_indent_like_this();

-- 
Knut Olav Bøhmer
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 9 days ago.

Previous Next


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