|
From: | Dmitry Gutov |
Subject: | Re: [Emacs-diffs] master 6354e3c: Handle indentation of nested ternary operators in JS |
Date: | Fri, 14 Apr 2017 01:01:16 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 |
On 13.04.2017 22:24, Stefan Monnier wrote:
+ isSet + ? (isEmpty ? 2 : 3) + : 4Not sure about JS, but at least in C, those parentheses are not needed (so the indentation code should ideally DTRT even in the absence of parentheses).
You're right, it's the same in JS. Luckily, most programmers don't feel comfortable leaving the inner group without parentheses (so the reporter went away satisfied).
Not exactly sure what logic to use to support the paren-less case, so patch welcome!
[Prev in Thread] | Current Thread | [Next in Thread] |