This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The "while" and "until" loops get incorrect indentation in ruby if they contain the optional "do" keyword. If the "do" is removed it works correctly: while x<5 do x+=1 end This is ok: while x<5 x+=1 end
Strange, the given example seems to work fine for me. Do you mean indentation after formatting or after pressing enter?
Ah, sorry, it seems it only happens when it is not the first statement on a line, try this: x=0;while x; do x+=1 end It happens both when editing and after a reformat.
Oops, added a semi-colon too much; this is the snippet that format incorrectly: x=0;while x do x+=1 end
Thanks, I can reproduce this now. I'll try take a look at this at some point after 6.9 Beta (focusing on rails 3 support now).