yoya / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

indenting succeeding control statements without braces (with patch) #73

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Wrong indentation when indenting certain statements

What is the expected output? What do you see instead?

expected:
if(foo)
  return true;
else if(bla)
  return false;

instead:
if(foo)
  return true;
else if(bla)
return false;

expected:
while(foo) if(bla)
  return;

instead:
while(foo) if(bla)
return;

What version of the product are you using? On what operating system?

20080521

Please provide any additional information below.

diff attached

Original issue reported on code.google.com by bobpe...@gmail.com on 27 May 2008 at 2:59

Attachments:

GoogleCodeExporter commented 8 years ago
patch broken, second attempt, this at least should not throw

Original comment by bobpe...@gmail.com on 28 May 2008 at 4:02

Attachments: