tamzinblake / js3-mode

A chimeric fork of js2-mode and js-mode
GNU General Public License v3.0
181 stars 13 forks source link

Strange for loop indentation #58

Closed tamzinblake closed 12 years ago

tamzinblake commented 12 years ago
var i,j

for (i = 0; i < 10; i++)
  alert('hi')

function () {
  for (j = 0; j < 10; j++)
  alert('hi')
}
tamzinblake commented 12 years ago

This is obviously caused by 7c693c22c6db58fa8b8ced60f49c05b3b747dc8a which is a fix for #48. I can't believe there's no test for #48 so I could remember what that was supposed to fix. Anyone remember this one?