]> code.delx.au - gnu-emacs/commit
Don't mistake `for' inside a function for a part of array comprehension
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 27 Apr 2016 23:00:23 +0000 (02:00 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 27 Apr 2016 23:00:48 +0000 (02:00 +0300)
commit0255a70c8ae22e259e8938ac3840c7b6687edec8
tree7e300091da3bedac669c525b3131d798ffd1b633
parentff7e201ed87d206334afedd4366deebba440efde
Don't mistake `for' inside a function for a part of array comprehension

* lisp/progmodes/js.el (js--indent-in-array-comp): Also check the
depth in parens between the bracket and `for' (bug#23391).

* test/indent/js.js: Add a corresponding example.
lisp/progmodes/js.el
test/indent/js.js