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

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

bug#9151: js-mode indentation doesn't recognize brace-less function expr


From: Knut Olav Bøhmer
Subject: bug#9151: js-mode indentation doesn't recognize brace-less function expressions
Date: Wed, 21 Aug 2019 09:54:18 +0200

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

reply via email to

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